diff --git a/annotated.html b/annotated.html index db844a91..51e87306 100644 --- a/annotated.html +++ b/annotated.html @@ -2,8 +2,8 @@
- - + +
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
+Filesfile | watch.h [code] | file | watch.h [code] | | file | watch_adc.h [code] | | file | watch_app.h [code] | | file | watch_buzzer.h [code] | | file | watch_deepsleep.h [code] | | file | watch_extint.h [code] | | file | watch_gpio.h [code] | | file | watch_i2c.h [code] | | file | watch_led.h [code] | | file | watch_private.h [code] | | file | watch_private_display.h [code] | | file | watch_rtc.h [code] | | file | watch_slcd.h [code] | | file | watch_spi.h [code] | | file | watch_uart.h [code] | | | file | watch_utility.h [code] |
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
+Directoriesdirectory | watch | |
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
This section covers functions related to the SAM L22's analog-to-digital converter, as well as configuring and reading values from the five analog-capable pins on the 9-pin connector. More...
+Functions
-void | watch_enable_adc (void) | void | watch_enable_analog_input (const uint8_t pin) | | +void | watch_enable_adc (void) | Enables the ADC peripheral. You must call this before attempting to read a value from an analog pin. |
This section covers functions related to the SAM L22's analog-to-digital converter, as well as configuring and reading values from the five analog-capable pins on the 9-pin connector.
+This section covers functions related to the SAM L22's analog-to-digital converter, as well as configuring and reading values from the five analog-capable pins on the 9-pin connector.
Returns the voltage of the VCC supply in millivolts (i.e. 3000 mV == 3.0 V). If running on a coin cell, this will be the battery voltage.
-Unlike other ADC functions, this function does not return a raw value from the ADC, but rather scales it to an actual number of millivolts. This is because the ADC doesn't let us measure VCC per se; it instead lets us measure VCC / 4, and we choose to measure it against the internal reference voltage of 1.024 V. In short, the ADC gives us a number that's complicated to deal with, so we just turn it into a useful number for you :)
Unlike other ADC functions, this function does not return a raw value from the ADC, but rather scales it to an actual number of millivolts. This is because the ADC doesn't let us measure VCC per se; it instead lets us measure VCC / 4, and we choose to measure it against the internal reference voltage of 1.024 V. In short, the ADC gives us a number that's complicated to deal with, so we just turn it into a useful number for you :)
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
This section covers the functions that you will implement in your app.c file when designing a Sensor Watch app. More...
+Functions
-void | app_init (void) | |
-void | app_wake_from_backup (void) | void | app_setup (void) | | +void | app_init (void) | A function you will implement to initialize your application state. The app_init function is called before anything else. Use it to set up any internal data structures or application state required by your app, but don't configure any peripherals just yet. | +void | app_wake_from_backup (void) | A function you will implement to wake from BACKUP mode, which wipes the system's RAM, and with it, your application's state. You may have chosen to store some important application state in the RTC's backup registers prior to entering this mode. You may restore that state here. | void | app_prepare_for_standby (void) | |||||||||
A function you will implement to prepare to enter STANDBY mode. The app_prepare_for_standby function is called after your app_loop function returns true, and just before the watch enters STANDBY mode. In this mode most peripherals are shut down, and no code will run until the watch receives an interrupt (generally either the 1Hz tick or a press on one of the buttons). More... | ||||||||||||||||||||||||
-void | app_wake_from_standby (void) | |||||||||||||||||||||||
+void | app_wake_from_standby (void) | |||||||||||||||||||||||
A method you will implement to configure the app after waking from STANDBY mode. | ||||||||||||||||||||||||
This section covers the functions that you will implement in your app.c file when designing a Sensor Watch app.
-You should be able to write a watch app by simply implementing these functions and declaring callbacks for various GPIO and peripheral interrupts. The main.c file takes care of calling these functions for you. The general flow:
+This section covers the functions that you will implement in your app.c file when designing a Sensor Watch app.
+You should be able to write a watch app by simply implementing these functions and declaring callbacks for various GPIO and peripheral interrupts. The main.c file takes care of calling these functions for you. The general flow:
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
This section covers functions related to the three buttons: Light, Mode and Alarm, as well as external interrupts from devices on the nine-pin connector. More...
+Typedefs
-typedef enum watch_interrupt_trigger | watch_interrupt_trigger | | +typedef enum watch_interrupt_trigger | watch_interrupt_trigger | An enum defining the types of interrupt trigger you wish to scan for. |
+Enumerations | enum | watch_interrupt_trigger { INTERRUPT_TRIGGER_NONE = 0 + | enum | watch_interrupt_trigger { INTERRUPT_TRIGGER_NONE = 0 , INTERRUPT_TRIGGER_RISING , INTERRUPT_TRIGGER_FALLING , INTERRUPT_TRIGGER_BOTH @@ -93,37 +92,37 @@ Enumerations | An enum defining the types of interrupt trigger you wish to scan for. |
+Functions
-void | watch_enable_external_interrupts (void) | |
-void | watch_disable_external_interrupts (void) | | | | +void | watch_enable_external_interrupts (void) | Enables the external interrupt controller. | +void | watch_disable_external_interrupts (void) | Disables the external interrupt controller. | void | watch_register_interrupt_callback (const uint8_t pin, ext_irq_cb_t callback, watch_interrupt_trigger trigger) | Configures an external interrupt callback on one of the external interrupt pins. More... | + | __attribute__ ((deprecated("Use watch_register_interrupt_callback or watch_register_extwake_callback instead"))) void watch_register_button_callback(const uint8_t pin | + | __attribute__ ((deprecated("Use watch_enable_external_interrupts instead"))) void watch_enable_buttons(void) |
+Variables | + | ext_irq_cb_t | callback |
This section covers functions related to the three buttons: Light, Mode and Alarm, as well as external interrupts from devices on the nine-pin connector.
-The buttons are the core input UI of the watch, and the way the user will interact with your application. They are active high, pulled down by the microcontroller, and triggered when one of the "pushers" brings a tab from the metal frame into contact with the edge of the board. Note that the buttons can only wake the watch from STANDBY mode, at least as of the current SAM L22 silicon revision. The external interrupt controller runs in STANDBY mode, but it does not run in BACKUP mode; to wake from BACKUP, buttons will not cut it.
+This section covers functions related to the three buttons: Light, Mode and Alarm, as well as external interrupts from devices on the nine-pin connector.
+The buttons are the core input UI of the watch, and the way the user will interact with your application. They are active high, pulled down by the microcontroller, and triggered when one of the "pushers" brings a tab from the metal frame into contact with the edge of the board. Note that the buttons can only wake the watch from STANDBY mode, at least as of the current SAM L22 silicon revision. The external interrupt controller runs in STANDBY mode, but it does not run in BACKUP mode; to wake from BACKUP, buttons will not cut it.
Configures an external interrupt callback on one of the external interrupt pins.
-You can set one interrupt callback per pin, and you can monitor for a rising condition, a falling condition, or both. If you just want to detect a button press, register your interrupt with INTERRUPT_TRIGGER_RISING; if you want to detect an active-low interrupt signal from a device on the nine-pin connector, use INTERRUPT_TRIGGER_FALLING. If you want to detect both rising and falling conditions (i.e. button down and button up), use INTERRUPT_TRIGGER_BOTH and use watch_get_pin_level to check the pin level in your callback to determine which condition caused the interrupt.
You can set one interrupt callback per pin, and you can monitor for a rising condition, a falling condition, or both. If you just want to detect a button press, register your interrupt with INTERRUPT_TRIGGER_RISING; if you want to detect an active-low interrupt signal from a device on the nine-pin connector, use INTERRUPT_TRIGGER_FALLING. If you want to detect both rising and falling conditions (i.e. button down and button up), use INTERRUPT_TRIGGER_BOTH and use watch_get_pin_level to check the pin level in your callback to determine which condition caused the interrupt.
pin | One of BTN_LIGHT, BTN_MODE, BTN_ALARM, A0, A1, A3 or A4. If the pin parameter matches one of the three button pins, this function will also enable an internal pull-down resistor. If the pin parameter is A0-A4, you are responsible for setting any required pull configuration using watch_enable_pull_up or watch_enable_pull_down. | |||||||||||||||||||||||
callback | The function you wish to have called when the button is pressed. | callback<
-Generated by
-
+ Buzzer Buzzer This section covers functions related to the piezo buzzer embedded in the F-91W's back plate. More...
Detailed Description-This section covers functions related to the piezo buzzer embedded in the F-91W's back plate. +This section covers functions related to the piezo buzzer embedded in the F-91W's back plate. Enumeration Type Documentation- +◆ BuzzerNote
@@ -247,188 +246,188 @@ const uint16_t | 87 notes for use with watch_buzzer_play_note
Function Documentation- +◆ watch_buzzer_play_note()
@@ -466,7 +465,7 @@ const uint16_t |
-
+
◆ watch_disable_buzzer()
@@ -487,7 +486,7 @@ const uint16_t |
-
+
◆ watch_set_buzzer_on()
@@ -508,7 +507,7 @@ const uint16_t |
-
+
◆ watch_set_buzzer_period()
@@ -537,7 +536,7 @@ const uint16_t |
-Generated by
This section covers functions related to the various sleep modes available to the watch, including Sleep, Deep Sleep, and BACKUP mode. More...
Detailed Description-This section covers functions related to the various sleep modes available to the watch, including Sleep, Deep Sleep, and BACKUP mode. -These terms changed meaning a bit over the course of development; if you are coming to this documentation after having worked with an earlier version of the library, these definitions should clarify the terminology. Terms in all caps are modes of the SAM L22; terms in Title Case are specific implementations in this library.
This section covers functions related to the various sleep modes available to the watch, including Sleep, Deep Sleep, and BACKUP mode. +These terms changed meaning a bit over the course of development; if you are coming to this documentation after having worked with an earlier version of the library, these definitions should clarify the terminology. Terms in all caps are modes of the SAM L22; terms in Title Case are specific implementations in this library. |
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
This section covers functions related to general-purpose input and output signals. More...
+Functionsvoid | watch_enable_digital_input (const uint8_t pin) | | |||||
This section covers functions related to general-purpose input and output signals.
+This section covers functions related to general-purpose input and output signals.
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
This section covers functions related to the SAM L22's built-I2C driver, including configuring the I2C bus, putting values directly on the bus and reading data from registers on I2C devices. More...
+Functions
-void | watch_enable_i2c (void) | |
-void | watch_disable_i2c (void) | void | watch_i2c_send (int16_t addr, uint8_t *buf, uint16_t length) | | +void | watch_enable_i2c (void) | Enables the I2C peripheral. Call this before attempting to interface with I2C devices. | +void | watch_disable_i2c (void) | Disables the I2C peripheral. |
This section covers functions related to the SAM L22's built-I2C driver, including configuring the I2C bus, putting values directly on the bus and reading data from registers on I2C devices.
+This section covers functions related to the SAM L22's built-I2C driver, including configuring the I2C bus, putting values directly on the bus and reading data from registers on I2C devices.
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
This section covers functions related to the bi-color red/green LED mounted behind the LCD. More...
+Functionsvoid | watch_enable_leds (void) | | |||||
void | watch_set_led_yellow (void) | ||||||
Sets both red and green LEDs to full brightness. More... | |||||||
-void | watch_set_led_off (void) | ||||||
+void | watch_set_led_off (void) | ||||||
Turns both the red and the green LEDs off. | |||||||
+ | |||||||
__attribute__ ((deprecated("Use watch_enable_leds instead"))) void watch_enable_led(bool unused) | |||||||
+ | |||||||
__attribute__ ((deprecated("Use watch_disable_leds instead"))) void watch_disable_led(bool unused) | |||||||
This section covers functions related to the bi-color red/green LED mounted behind the LCD.
-The SAM L22 is an exceedingly power efficient chip, whereas the LED's are relatively power- hungry. The green LED, at full power, consumes more power than the whole chip in active mode, and the red LED consumes about twelve times as much power! The LED's should thus be used only sparingly in order to preserve battery life.
make LED=BLUE
, and the watch library will automatically swap the pins so that watch_set_led_red sets the red LED, and watch_set_led_green sets the blue one. This section covers functions related to the bi-color red/green LED mounted behind the LCD.
+The SAM L22 is an exceedingly power efficient chip, whereas the LED's are relatively power- hungry. The green LED, at full power, consumes more power than the whole chip in active mode, and the red LED consumes about twelve times as much power! The LED's should thus be used only sparingly in order to preserve battery life.
make LED=BLUE
, and the watch library will automatically swap the pins so that watch_set_led_red sets the red LED, and watch_set_led_green sets the blue one. Sets the green LED to full brightness, and turns the red LED off.
-Of the two LED's in the RG bi-color LED, the green LED is the more power-efficient one (~0.44 mA).
Of the two LED's in the RG bi-color LED, the green LED is the more power-efficient one (~0.44 mA).
Sets the red LED to full brightness, and turns the green LED off.
-Of the two LED's in the RG bi-color LED, the red LED is the less power-efficient one (~4.5 mA).
+Of the two LED's in the RG bi-color LED, the red LED is the less power-efficient one (~4.5 mA).
- +Sets both red and green LEDs to full brightness.
-The total current draw between the two LED's in this mode will be ~5 mA, which is more than the watch draws in any other mode. Take care not to drain the battery.
The total current draw between the two LED's in this mode will be ~5 mA, which is more than the watch draws in any other mode. Take care not to drain the battery.
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
This section covers functions related to the SAM L22's real-time clock peripheral, including date, time and alarm functions. More...
+Data Structuresunion | watch_date_time | | |
+Macros | + | #define | WATCH_RTC_REFERENCE_YEAR (2020) |
+Typedefs | + | typedef enum watch_rtc_alarm_match | watch_rtc_alarm_match |
+Enumerations | enum | watch_rtc_alarm_match { ALARM_MATCH_DISABLED = 0 + | enum | watch_rtc_alarm_match { ALARM_MATCH_DISABLED = 0 , ALARM_MATCH_SS , ALARM_MATCH_MMSS , ALARM_MATCH_HHMMSS } |
+Functions
-bool | _watch_rtc_is_enabled (void) | void | watch_rtc_set_date_time (watch_date_time date_time) | | +bool | _watch_rtc_is_enabled (void) | Called by main.c to check if the RTC is enabled. You may call this function, but outside of app_init, it should always return true. | void | watch_rtc_register_alarm_callback (ext_irq_cb_t callback, watch_date_time alarm_time, watch_rtc_alarm_match mask) | |||||||
Registers an alarm callback that will be called when the RTC time matches the target time, as masked by the provided mask. More... | ||||||||||||||||
-void | watch_rtc_disable_alarm_callback (void) | |||||||||||||||
+void | watch_rtc_disable_alarm_callback (void) | |||||||||||||||
Disables the alarm callback. | ||||||||||||||||
void | watch_rtc_register_tick_callback (ext_irq_cb_t callback) | |||||||||||||||
Registers a "tick" callback that will be called once per second. More... | ||||||||||||||||
-void | watch_rtc_disable_tick_callback (void) | |||||||||||||||
+void | watch_rtc_disable_tick_callback (void) | |||||||||||||||
Disables the tick callback for the given period. | ||||||||||||||||
void | watch_rtc_register_periodic_callback (ext_irq_cb_t callback, uint8_t frequency) | void | watch_rtc_disable_matching_periodic_callbacks (uint8_t mask) | |||||||||||||
Disables tick callbacks for the given periods (as a bitmask). More... | ||||||||||||||||
-void | watch_rtc_disable_all_periodic_callbacks (void) | |||||||||||||||
+void | watch_rtc_disable_all_periodic_callbacks (void) | |||||||||||||||
Disables all periodic callbacks, including the once-per-second tick callback. | ||||||||||||||||
__attribute__ ((deprecated("Use watch_rtc_set_date_time function instead"))) void watch_set_date_time(struct calendar_date_time date_time) |
This section covers functions related to the SAM L22's real-time clock peripheral, including date, time and alarm functions.
-The real-time clock is the only peripheral that main.c enables for you. It is the cornerstone of low power operation on the watch, and it is required for several key functions that we assume will be available, namely the wake from BACKUP mode and the callback on the ALARM button. It is also required for the operation of the 1 Hz tick interrupt, which you will most likely use to wake from STANDBY mode.
+This section covers functions related to the SAM L22's real-time clock peripheral, including date, time and alarm functions.
+The real-time clock is the only peripheral that main.c enables for you. It is the cornerstone of low power operation on the watch, and it is required for several key functions that we assume will be available, namely the wake from BACKUP mode and the callback on the ALARM button. It is also required for the operation of the 1 Hz tick interrupt, which you will most likely use to wake from STANDBY mode.
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
This section covers functions related to the Segment LCD display driver, which is responsible for displaying strings of characters and indicators on the main watch display. More...
+Typedefs
-typedef enum WatchIndicatorSegment | WatchIndicatorSegment | | +typedef enum WatchIndicatorSegment | WatchIndicatorSegment | An enum listing the icons and indicators available on the watch. |
+Enumerationsenum | WatchIndicatorSegment { | WATCH_INDICATOR_SIGNAL = 0 @@ -96,10 +95,10 @@ Enumerations | An enum listing the icons and indicators available on the watch. More... | | |
+Functions
-void | watch_enable_display (void) | void | watch_set_pixel (uint8_t com, uint8_t seg) | | +void | watch_enable_display (void) | Enables the Segment LCD display. Call this before attempting to set pixels or display strings. | void | watch_clear_pixel (uint8_t com, uint8_t seg) | |||||||
Clears a pixel. Use this to manually clear a pixel with a given common and segment number. See segmap.html. More... | ||||||||||||||||
-void | watch_clear_display (void) | |||||||||||||||
+void | watch_clear_display (void) | |||||||||||||||
Clears all segments of the display, including incicators and the colon. | ||||||||||||||||
void | watch_display_string (char *string, uint8_t position) | |||||||||||||||
Displays a string at the given position, starting from the top left. There are ten digits. A space in any position will clear that digit. More... | ||||||||||||||||
-void | watch_set_colon (void) | |||||||||||||||
+void | watch_set_colon (void) | |||||||||||||||
Turns the colon segment on. | ||||||||||||||||
-void | watch_clear_colon (void) | |||||||||||||||
+void | watch_clear_colon (void) | |||||||||||||||
Turns the colon segment off. | ||||||||||||||||
void | watch_set_indicator (WatchIndicatorSegment indicator) |
This section covers functions related to the Segment LCD display driver, which is responsible for displaying strings of characters and indicators on the main watch display.
-The segment LCD controller consumes about 3 microamperes of power with no segments on, and about 4 microamperes with all segments on. There is also a slight power impact associated with updating the screen (about 1 microampere to update at 1 Hz). For the absolute lowest power operation, update the display only when its contents have changed, and disable the SLCD peripheral when the screen is not in use. For a map of all common and segment pins, see segmap.html. You can hover over any segment in that diagram to view the common and segment pins associated with each segment of the display.
+This section covers functions related to the Segment LCD display driver, which is responsible for displaying strings of characters and indicators on the main watch display.
+The segment LCD controller consumes about 3 microamperes of power with no segments on, and about 4 microamperes with all segments on. There is also a slight power impact associated with updating the screen (about 1 microampere to update at 1 Hz). For the absolute lowest power operation, update the display only when its contents have changed, and disable the SLCD peripheral when the screen is not in use. For a map of all common and segment pins, see segmap.html. You can hover over any segment in that diagram to view the common and segment pins associated with each segment of the display.
The hourly signal indicator; also useful for indicating that sensors are on.
+The hourly signal indicator; also useful for indicating that sensors are on.
The small bell indicating that an alarm is set.
+The small bell indicating that an alarm is set.
The PM indicator, indicating that a time is in the afternoon.
+The PM indicator, indicating that a time is in the afternoon.
The 24H indicator, indicating that the watch is in a 24-hour mode.
+The 24H indicator, indicating that the watch is in a 24-hour mode.
The LAP indicator; the F-91W uses this in its stopwatch UI.
+The LAP indicator; the F-91W uses this in its stopwatch UI.
Blinks a single character in position 7. Does not affect other positions.
-Six of the seven segments in position 7 (and only position 7) are capable of autonomous blinking. This blinking does not require any CPU resources, and will continue even in STANDBY and Sleep mode (but not Deep Sleep mode, since that mode turns off the LCD).
Six of the seven segments in position 7 (and only position 7) are capable of autonomous blinking. This blinking does not require any CPU resources, and will continue even in STANDBY and Sleep mode (but not Deep Sleep mode, since that mode turns off the LCD).
character | The character you wish to blink. | |||||||||||||||||||||||
duration | The duration of the on/off cycle in milliseconds, from 50 to ~4250 ms. |
+
◆ watch_start_tick_animation()
@@ -428,7 +427,7 @@ void |
Begins a two-segment "tick-tock" animation in position 8. -Six of the seven segments in position 8 (and only position 8) are capable of autonomous animation. This animation is very basic, and consists of moving a bit pattern forward or backward in a shift register whose positions map to fixed segments on the LCD. Given this constraint, an animation across all six segments does not make sense; so the watch library offers only a simple "tick/tock" in segments D and E. This animation does not require any CPU resources, and will continue even in STANDBY and Sleep mode (but not Deep Sleep mode, since that mode turns off the LCD).
|
+
◆ watch_stop_blink()
@@ -454,11 +453,11 @@ void |
Stops and clears all blinking segments. -This will stop all blinking in position 7, and clear all segments in that digit. +This will stop all blinking in position 7, and clear all segments in that digit. - +◆ watch_stop_tick_animation()
@@ -475,11 +474,11 @@ void |
Stops the tick/tock animation and clears all animating segments. -This will stop the animation and clear all segments in position 8. +This will stop the animation and clear all segments in position 8. - +◆ watch_tick_animation_is_running()
@@ -503,7 +502,7 @@ void |
-Generated by
This section covers functions related to the SAM L22's built-in SPI driver, including configuring the SPI bus and writing to / reading from devices. More...
Detailed Description-This section covers functions related to the SAM L22's built-in SPI driver, including configuring the SPI bus and writing to / reading from devices. +This section covers functions related to the SAM L22's built-in SPI driver, including configuring the SPI bus and writing to / reading from devices. Function Documentation- +◆ watch_spi_read()
@@ -134,7 +133,7 @@ void |
+
◆ watch_spi_transfer()
@@ -179,7 +178,7 @@ void |
+
◆ watch_spi_write()
@@ -220,7 +219,7 @@ void |
-Generated by
This section covers functions related to the UART peripheral. More...
Detailed Description-This section covers functions related to the UART peripheral. +This section covers functions related to the UART peripheral. Function Documentation- +◆ __attribute__() [1/2]
@@ -120,7 +119,7 @@ Functions |
-
+
c | The character you wish to output. |
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
This section covers various useful functions that don't fit anywhere else. More...
+Functionsconst char * | watch_utility_get_weekday (watch_date_time date_time) | | Returns a two-letter weekday for the given timestamp, suitable for display in positions 0-1 of the watch face. More... | | const char * | watch_utility_get_weekday (watch_date_time date_time) | | Returns a two-letter weekday for the given timestamp, suitable for display in positions 0-1 of the watch face. More... | | | uint32_t | watch_utility_convert_to_unix_time (uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset) | Returns the UNIX time (seconds since 1970) for a given date/time in UTC. More... | ||||||||
This section covers various useful functions that don't fit anywhere else.
+This section covers various useful functions that don't fit anywhere else.
const char* watch_utility_get_weekday | +const char * watch_utility_get_weekday | ( | watch_date_time | date_time | ) | @@ -352,7 +351,7 @@ Functions
- Sensor Watch
- 0.0.0
+
+ |
@@ -31,21 +30,22 @@
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
This documentation covers most of the functions you will use to interact with the Sensor Watch hardware. It is divided into the following sections:
This documentation covers most of the functions you will use to interact with the Sensor Watch hardware. It is divided into the following sections: