diff --git a/annotated.html b/annotated.html index 98a5e4f5..362c1e48 100644 --- a/annotated.html +++ b/annotated.html @@ -3,7 +3,7 @@ - + Sensor Watch: Data Structures @@ -30,7 +30,7 @@ - + @@ -30,7 +30,7 @@ - + +
diff --git a/watch__adc_8h_source.html b/watch__adc_8h_source.html index 2e46cdbd..f208093c 100644 --- a/watch__adc_8h_source.html +++ b/watch__adc_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_adc.h Source File @@ -30,7 +30,7 @@ - + +
diff --git a/watch__app_8h_source.html b/watch__app_8h_source.html index 44f4cda3..17270b80 100644 --- a/watch__app_8h_source.html +++ b/watch__app_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_app.h Source File @@ -30,7 +30,7 @@ - + +
diff --git a/watch__buzzer_8h_source.html b/watch__buzzer_8h_source.html index 28a4d03f..26ac46cb 100644 --- a/watch__buzzer_8h_source.html +++ b/watch__buzzer_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_buzzer.h Source File @@ -30,7 +30,7 @@ - + +
55
58void watch_set_buzzer_off(void);
59
+
61typedef enum BuzzerNote {
62 BUZZER_NOTE_A1,
63 BUZZER_NOTE_A1SHARP_B1FLAT,
@@ -206,6 +212,7 @@ $(function() {
148 BUZZER_NOTE_B8,
149 BUZZER_NOTE_REST
150} BuzzerNote;
+
151
158void watch_buzzer_play_note(BuzzerNote note, uint16_t duration_ms);
159
@@ -223,108 +230,108 @@ $(function() {
187
189#endif
watch_buzzer_play_note
void watch_buzzer_play_note(BuzzerNote note, uint16_t duration_ms)
Plays the given note for a set duration.
-
BuzzerNote
BuzzerNote
87 notes for use with watch_buzzer_play_note
Definition: watch_buzzer.h:61
+
BuzzerNote
BuzzerNote
87 notes for use with watch_buzzer_play_note
Definition watch_buzzer.h:61
watch_disable_buzzer
void watch_disable_buzzer(void)
Disables the TCC peripheral that drives the buzzer.
watch_set_buzzer_on
void watch_set_buzzer_on(void)
Turns the buzzer output on. It will emit a continuous sound at the given frequency.
watch_buzzer_play_sequence
void watch_buzzer_play_sequence(int8_t *note_sequence, void(*callback_on_end)(void))
Plays the given sequence of notes in a non-blocking way.
watch_buzzer_abort_sequence
void watch_buzzer_abort_sequence(void)
Aborts a playing sequence.
-
NotePeriods
const uint16_t NotePeriods[108]
An array of periods for all the notes on a piano, corresponding to the names in BuzzerNote.
Definition: watch_private_buzzer.h:29
+
NotePeriods
const uint16_t NotePeriods[108]
An array of periods for all the notes on a piano, corresponding to the names in BuzzerNote.
Definition watch_private_buzzer.h:29
watch_set_buzzer_period
void watch_set_buzzer_period(uint32_t period)
Sets the period of the buzzer.
watch_set_buzzer_off
void watch_set_buzzer_off(void)
Turns the buzzer output off.
watch_enable_buzzer
void watch_enable_buzzer(void)
Enables the TCC peripheral, which drives the buzzer.
-
BUZZER_NOTE_F8
@ BUZZER_NOTE_F8
5587.65 Hz
Definition: watch_buzzer.h:142
-
BUZZER_NOTE_D6SHARP_E6FLAT
@ BUZZER_NOTE_D6SHARP_E6FLAT
1244.51 Hz
Definition: watch_buzzer.h:116
-
BUZZER_NOTE_B5
@ BUZZER_NOTE_B5
987.77 Hz
Definition: watch_buzzer.h:112
-
BUZZER_NOTE_F3SHARP_G3FLAT
@ BUZZER_NOTE_F3SHARP_G3FLAT
185.00 Hz
Definition: watch_buzzer.h:83
-
BUZZER_NOTE_C8
@ BUZZER_NOTE_C8
4186.01 Hz
Definition: watch_buzzer.h:137
-
BUZZER_NOTE_B8
@ BUZZER_NOTE_B8
7902.13 Hz
Definition: watch_buzzer.h:148
-
BUZZER_NOTE_E3
@ BUZZER_NOTE_E3
164.81 Hz
Definition: watch_buzzer.h:81
-
BUZZER_NOTE_D6
@ BUZZER_NOTE_D6
1174.66 Hz
Definition: watch_buzzer.h:115
-
BUZZER_NOTE_B1
@ BUZZER_NOTE_B1
61.74 Hz
Definition: watch_buzzer.h:64
-
BUZZER_NOTE_G4
@ BUZZER_NOTE_G4
392.00 Hz
Definition: watch_buzzer.h:96
-
BUZZER_NOTE_B7
@ BUZZER_NOTE_B7
3951.07 Hz
Definition: watch_buzzer.h:136
-
BUZZER_NOTE_C7SHARP_D7FLAT
@ BUZZER_NOTE_C7SHARP_D7FLAT
2217.46 Hz
Definition: watch_buzzer.h:126
-
BUZZER_NOTE_G3SHARP_A3FLAT
@ BUZZER_NOTE_G3SHARP_A3FLAT
207.65 Hz
Definition: watch_buzzer.h:85
-
BUZZER_NOTE_C6
@ BUZZER_NOTE_C6
1046.50 Hz
Definition: watch_buzzer.h:113
-
BUZZER_NOTE_E6
@ BUZZER_NOTE_E6
1318.51 Hz
Definition: watch_buzzer.h:117
-
BUZZER_NOTE_D7SHARP_E7FLAT
@ BUZZER_NOTE_D7SHARP_E7FLAT
2489.02 Hz
Definition: watch_buzzer.h:128
-
BUZZER_NOTE_E7
@ BUZZER_NOTE_E7
2637.02 Hz
Definition: watch_buzzer.h:129
-
BUZZER_NOTE_E4
@ BUZZER_NOTE_E4
329.63 Hz
Definition: watch_buzzer.h:93
-
BUZZER_NOTE_B6
@ BUZZER_NOTE_B6
1975.53 Hz
Definition: watch_buzzer.h:124
-
BUZZER_NOTE_REST
@ BUZZER_NOTE_REST
no sound
Definition: watch_buzzer.h:149
-
BUZZER_NOTE_D8SHARP_E8FLAT
@ BUZZER_NOTE_D8SHARP_E8FLAT
4978.03 Hz
Definition: watch_buzzer.h:140
-
BUZZER_NOTE_D4SHARP_E4FLAT
@ BUZZER_NOTE_D4SHARP_E4FLAT
311.13 Hz
Definition: watch_buzzer.h:92
-
BUZZER_NOTE_C2
@ BUZZER_NOTE_C2
65.41 Hz
Definition: watch_buzzer.h:65
-
BUZZER_NOTE_B2
@ BUZZER_NOTE_B2
123.47 Hz
Definition: watch_buzzer.h:76
-
BUZZER_NOTE_F5
@ BUZZER_NOTE_F5
698.46 Hz
Definition: watch_buzzer.h:106
-
BUZZER_NOTE_C2SHARP_D2FLAT
@ BUZZER_NOTE_C2SHARP_D2FLAT
69.30 Hz
Definition: watch_buzzer.h:66
-
BUZZER_NOTE_C4SHARP_D4FLAT
@ BUZZER_NOTE_C4SHARP_D4FLAT
277.18 Hz
Definition: watch_buzzer.h:90
-
BUZZER_NOTE_A6SHARP_B6FLAT
@ BUZZER_NOTE_A6SHARP_B6FLAT
1864.66 Hz
Definition: watch_buzzer.h:123
-
BUZZER_NOTE_G6
@ BUZZER_NOTE_G6
1567.98 Hz
Definition: watch_buzzer.h:120
-
BUZZER_NOTE_A5SHARP_B5FLAT
@ BUZZER_NOTE_A5SHARP_B5FLAT
932.33 Hz
Definition: watch_buzzer.h:111
-
BUZZER_NOTE_G8
@ BUZZER_NOTE_G8
6271.93 Hz
Definition: watch_buzzer.h:144
-
BUZZER_NOTE_D4
@ BUZZER_NOTE_D4
293.66 Hz
Definition: watch_buzzer.h:91
-
BUZZER_NOTE_G5SHARP_A5FLAT
@ BUZZER_NOTE_G5SHARP_A5FLAT
830.61 Hz
Definition: watch_buzzer.h:109
-
BUZZER_NOTE_A3SHARP_B3FLAT
@ BUZZER_NOTE_A3SHARP_B3FLAT
233.08 Hz
Definition: watch_buzzer.h:87
-
BUZZER_NOTE_G7
@ BUZZER_NOTE_G7
3135.96 Hz
Definition: watch_buzzer.h:132
-
BUZZER_NOTE_D5SHARP_E5FLAT
@ BUZZER_NOTE_D5SHARP_E5FLAT
622.25 Hz
Definition: watch_buzzer.h:104
-
BUZZER_NOTE_D3
@ BUZZER_NOTE_D3
146.83 Hz
Definition: watch_buzzer.h:79
-
BUZZER_NOTE_G4SHARP_A4FLAT
@ BUZZER_NOTE_G4SHARP_A4FLAT
415.30 Hz
Definition: watch_buzzer.h:97
-
BUZZER_NOTE_A1SHARP_B1FLAT
@ BUZZER_NOTE_A1SHARP_B1FLAT
58.27 Hz
Definition: watch_buzzer.h:63
-
BUZZER_NOTE_D5
@ BUZZER_NOTE_D5
587.33 Hz
Definition: watch_buzzer.h:103
-
BUZZER_NOTE_A2SHARP_B2FLAT
@ BUZZER_NOTE_A2SHARP_B2FLAT
116.54 Hz
Definition: watch_buzzer.h:75
-
BUZZER_NOTE_A4
@ BUZZER_NOTE_A4
440.00 Hz
Definition: watch_buzzer.h:98
-
BUZZER_NOTE_D7
@ BUZZER_NOTE_D7
2349.32 Hz
Definition: watch_buzzer.h:127
-
BUZZER_NOTE_F5SHARP_G5FLAT
@ BUZZER_NOTE_F5SHARP_G5FLAT
739.99 Hz
Definition: watch_buzzer.h:107
-
BUZZER_NOTE_C6SHARP_D6FLAT
@ BUZZER_NOTE_C6SHARP_D6FLAT
1108.73 Hz
Definition: watch_buzzer.h:114
-
BUZZER_NOTE_A7SHARP_B7FLAT
@ BUZZER_NOTE_A7SHARP_B7FLAT
3729.31 Hz
Definition: watch_buzzer.h:135
-
BUZZER_NOTE_F7
@ BUZZER_NOTE_F7
2793.83 Hz
Definition: watch_buzzer.h:130
-
BUZZER_NOTE_A3
@ BUZZER_NOTE_A3
220.00 Hz
Definition: watch_buzzer.h:86
-
BUZZER_NOTE_F6SHARP_G6FLAT
@ BUZZER_NOTE_F6SHARP_G6FLAT
1479.98 Hz
Definition: watch_buzzer.h:119
-
BUZZER_NOTE_B4
@ BUZZER_NOTE_B4
493.88 Hz
Definition: watch_buzzer.h:100
-
BUZZER_NOTE_A5
@ BUZZER_NOTE_A5
880.00 Hz
Definition: watch_buzzer.h:110
-
BUZZER_NOTE_C5SHARP_D5FLAT
@ BUZZER_NOTE_C5SHARP_D5FLAT
554.37 Hz
Definition: watch_buzzer.h:102
-
BUZZER_NOTE_A4SHARP_B4FLAT
@ BUZZER_NOTE_A4SHARP_B4FLAT
466.16 Hz
Definition: watch_buzzer.h:99
-
BUZZER_NOTE_C7
@ BUZZER_NOTE_C7
2093.00 Hz
Definition: watch_buzzer.h:125
-
BUZZER_NOTE_F6
@ BUZZER_NOTE_F6
1396.91 Hz
Definition: watch_buzzer.h:118
-
BUZZER_NOTE_C4
@ BUZZER_NOTE_C4
261.63 Hz
Definition: watch_buzzer.h:89
-
BUZZER_NOTE_F2
@ BUZZER_NOTE_F2
87.31 Hz
Definition: watch_buzzer.h:70
-
BUZZER_NOTE_G2SHARP_A2FLAT
@ BUZZER_NOTE_G2SHARP_A2FLAT
103.83 Hz
Definition: watch_buzzer.h:73
-
BUZZER_NOTE_A8
@ BUZZER_NOTE_A8
7040.00 Hz
Definition: watch_buzzer.h:146
-
BUZZER_NOTE_A2
@ BUZZER_NOTE_A2
110.00 Hz
Definition: watch_buzzer.h:74
-
BUZZER_NOTE_F4SHARP_G4FLAT
@ BUZZER_NOTE_F4SHARP_G4FLAT
369.99 Hz
Definition: watch_buzzer.h:95
-
BUZZER_NOTE_E2
@ BUZZER_NOTE_E2
82.41 Hz
Definition: watch_buzzer.h:69
-
BUZZER_NOTE_G3
@ BUZZER_NOTE_G3
196.00 Hz
Definition: watch_buzzer.h:84
-
BUZZER_NOTE_F2SHARP_G2FLAT
@ BUZZER_NOTE_F2SHARP_G2FLAT
92.50 Hz
Definition: watch_buzzer.h:71
-
BUZZER_NOTE_E5
@ BUZZER_NOTE_E5
659.25 Hz
Definition: watch_buzzer.h:105
-
BUZZER_NOTE_D2SHARP_E2FLAT
@ BUZZER_NOTE_D2SHARP_E2FLAT
77.78 Hz
Definition: watch_buzzer.h:68
-
BUZZER_NOTE_C3SHARP_D3FLAT
@ BUZZER_NOTE_C3SHARP_D3FLAT
138.59 Hz
Definition: watch_buzzer.h:78
-
BUZZER_NOTE_C8SHARP_D8FLAT
@ BUZZER_NOTE_C8SHARP_D8FLAT
4434.92 Hz
Definition: watch_buzzer.h:138
-
BUZZER_NOTE_E8
@ BUZZER_NOTE_E8
5274.04 Hz
Definition: watch_buzzer.h:141
-
BUZZER_NOTE_C3
@ BUZZER_NOTE_C3
130.81 Hz
Definition: watch_buzzer.h:77
-
BUZZER_NOTE_D2
@ BUZZER_NOTE_D2
73.42 Hz
Definition: watch_buzzer.h:67
-
BUZZER_NOTE_D8
@ BUZZER_NOTE_D8
4698.63 Hz
Definition: watch_buzzer.h:139
-
BUZZER_NOTE_A6
@ BUZZER_NOTE_A6
1760.00 Hz
Definition: watch_buzzer.h:122
-
BUZZER_NOTE_F8SHARP_G8FLAT
@ BUZZER_NOTE_F8SHARP_G8FLAT
5919.91 Hz
Definition: watch_buzzer.h:143
-
BUZZER_NOTE_F4
@ BUZZER_NOTE_F4
349.23 Hz
Definition: watch_buzzer.h:94
-
BUZZER_NOTE_A8SHARP_B8FLAT
@ BUZZER_NOTE_A8SHARP_B8FLAT
7458.62 Hz
Definition: watch_buzzer.h:147
-
BUZZER_NOTE_A7
@ BUZZER_NOTE_A7
3520.00 Hz
Definition: watch_buzzer.h:134
-
BUZZER_NOTE_G5
@ BUZZER_NOTE_G5
783.99 Hz
Definition: watch_buzzer.h:108
-
BUZZER_NOTE_C5
@ BUZZER_NOTE_C5
523.25 Hz
Definition: watch_buzzer.h:101
-
BUZZER_NOTE_G2
@ BUZZER_NOTE_G2
98.00 Hz
Definition: watch_buzzer.h:72
-
BUZZER_NOTE_B3
@ BUZZER_NOTE_B3
246.94 Hz
Definition: watch_buzzer.h:88
-
BUZZER_NOTE_D3SHARP_E3FLAT
@ BUZZER_NOTE_D3SHARP_E3FLAT
155.56 Hz
Definition: watch_buzzer.h:80
-
BUZZER_NOTE_F3
@ BUZZER_NOTE_F3
174.61 Hz
Definition: watch_buzzer.h:82
-
BUZZER_NOTE_G8SHARP_A8FLAT
@ BUZZER_NOTE_G8SHARP_A8FLAT
6644.88 Hz
Definition: watch_buzzer.h:145
-
BUZZER_NOTE_F7SHARP_G7FLAT
@ BUZZER_NOTE_F7SHARP_G7FLAT
2959.96 Hz
Definition: watch_buzzer.h:131
-
BUZZER_NOTE_G7SHARP_A7FLAT
@ BUZZER_NOTE_G7SHARP_A7FLAT
3322.44 Hz
Definition: watch_buzzer.h:133
-
BUZZER_NOTE_A1
@ BUZZER_NOTE_A1
55.00 Hz
Definition: watch_buzzer.h:62
-
BUZZER_NOTE_G6SHARP_A6FLAT
@ BUZZER_NOTE_G6SHARP_A6FLAT
1661.22 Hz
Definition: watch_buzzer.h:121
+
BUZZER_NOTE_F8
@ BUZZER_NOTE_F8
5587.65 Hz
Definition watch_buzzer.h:142
+
BUZZER_NOTE_D6SHARP_E6FLAT
@ BUZZER_NOTE_D6SHARP_E6FLAT
1244.51 Hz
Definition watch_buzzer.h:116
+
BUZZER_NOTE_B5
@ BUZZER_NOTE_B5
987.77 Hz
Definition watch_buzzer.h:112
+
BUZZER_NOTE_F3SHARP_G3FLAT
@ BUZZER_NOTE_F3SHARP_G3FLAT
185.00 Hz
Definition watch_buzzer.h:83
+
BUZZER_NOTE_C8
@ BUZZER_NOTE_C8
4186.01 Hz
Definition watch_buzzer.h:137
+
BUZZER_NOTE_B8
@ BUZZER_NOTE_B8
7902.13 Hz
Definition watch_buzzer.h:148
+
BUZZER_NOTE_E3
@ BUZZER_NOTE_E3
164.81 Hz
Definition watch_buzzer.h:81
+
BUZZER_NOTE_D6
@ BUZZER_NOTE_D6
1174.66 Hz
Definition watch_buzzer.h:115
+
BUZZER_NOTE_B1
@ BUZZER_NOTE_B1
61.74 Hz
Definition watch_buzzer.h:64
+
BUZZER_NOTE_G4
@ BUZZER_NOTE_G4
392.00 Hz
Definition watch_buzzer.h:96
+
BUZZER_NOTE_B7
@ BUZZER_NOTE_B7
3951.07 Hz
Definition watch_buzzer.h:136
+
BUZZER_NOTE_C7SHARP_D7FLAT
@ BUZZER_NOTE_C7SHARP_D7FLAT
2217.46 Hz
Definition watch_buzzer.h:126
+
BUZZER_NOTE_G3SHARP_A3FLAT
@ BUZZER_NOTE_G3SHARP_A3FLAT
207.65 Hz
Definition watch_buzzer.h:85
+
BUZZER_NOTE_C6
@ BUZZER_NOTE_C6
1046.50 Hz
Definition watch_buzzer.h:113
+
BUZZER_NOTE_E6
@ BUZZER_NOTE_E6
1318.51 Hz
Definition watch_buzzer.h:117
+
BUZZER_NOTE_D7SHARP_E7FLAT
@ BUZZER_NOTE_D7SHARP_E7FLAT
2489.02 Hz
Definition watch_buzzer.h:128
+
BUZZER_NOTE_E7
@ BUZZER_NOTE_E7
2637.02 Hz
Definition watch_buzzer.h:129
+
BUZZER_NOTE_E4
@ BUZZER_NOTE_E4
329.63 Hz
Definition watch_buzzer.h:93
+
BUZZER_NOTE_B6
@ BUZZER_NOTE_B6
1975.53 Hz
Definition watch_buzzer.h:124
+
BUZZER_NOTE_REST
@ BUZZER_NOTE_REST
no sound
Definition watch_buzzer.h:149
+
BUZZER_NOTE_D8SHARP_E8FLAT
@ BUZZER_NOTE_D8SHARP_E8FLAT
4978.03 Hz
Definition watch_buzzer.h:140
+
BUZZER_NOTE_D4SHARP_E4FLAT
@ BUZZER_NOTE_D4SHARP_E4FLAT
311.13 Hz
Definition watch_buzzer.h:92
+
BUZZER_NOTE_C2
@ BUZZER_NOTE_C2
65.41 Hz
Definition watch_buzzer.h:65
+
BUZZER_NOTE_B2
@ BUZZER_NOTE_B2
123.47 Hz
Definition watch_buzzer.h:76
+
BUZZER_NOTE_F5
@ BUZZER_NOTE_F5
698.46 Hz
Definition watch_buzzer.h:106
+
BUZZER_NOTE_C2SHARP_D2FLAT
@ BUZZER_NOTE_C2SHARP_D2FLAT
69.30 Hz
Definition watch_buzzer.h:66
+
BUZZER_NOTE_C4SHARP_D4FLAT
@ BUZZER_NOTE_C4SHARP_D4FLAT
277.18 Hz
Definition watch_buzzer.h:90
+
BUZZER_NOTE_A6SHARP_B6FLAT
@ BUZZER_NOTE_A6SHARP_B6FLAT
1864.66 Hz
Definition watch_buzzer.h:123
+
BUZZER_NOTE_G6
@ BUZZER_NOTE_G6
1567.98 Hz
Definition watch_buzzer.h:120
+
BUZZER_NOTE_A5SHARP_B5FLAT
@ BUZZER_NOTE_A5SHARP_B5FLAT
932.33 Hz
Definition watch_buzzer.h:111
+
BUZZER_NOTE_G8
@ BUZZER_NOTE_G8
6271.93 Hz
Definition watch_buzzer.h:144
+
BUZZER_NOTE_D4
@ BUZZER_NOTE_D4
293.66 Hz
Definition watch_buzzer.h:91
+
BUZZER_NOTE_G5SHARP_A5FLAT
@ BUZZER_NOTE_G5SHARP_A5FLAT
830.61 Hz
Definition watch_buzzer.h:109
+
BUZZER_NOTE_A3SHARP_B3FLAT
@ BUZZER_NOTE_A3SHARP_B3FLAT
233.08 Hz
Definition watch_buzzer.h:87
+
BUZZER_NOTE_G7
@ BUZZER_NOTE_G7
3135.96 Hz
Definition watch_buzzer.h:132
+
BUZZER_NOTE_D5SHARP_E5FLAT
@ BUZZER_NOTE_D5SHARP_E5FLAT
622.25 Hz
Definition watch_buzzer.h:104
+
BUZZER_NOTE_D3
@ BUZZER_NOTE_D3
146.83 Hz
Definition watch_buzzer.h:79
+
BUZZER_NOTE_G4SHARP_A4FLAT
@ BUZZER_NOTE_G4SHARP_A4FLAT
415.30 Hz
Definition watch_buzzer.h:97
+
BUZZER_NOTE_A1SHARP_B1FLAT
@ BUZZER_NOTE_A1SHARP_B1FLAT
58.27 Hz
Definition watch_buzzer.h:63
+
BUZZER_NOTE_D5
@ BUZZER_NOTE_D5
587.33 Hz
Definition watch_buzzer.h:103
+
BUZZER_NOTE_A2SHARP_B2FLAT
@ BUZZER_NOTE_A2SHARP_B2FLAT
116.54 Hz
Definition watch_buzzer.h:75
+
BUZZER_NOTE_A4
@ BUZZER_NOTE_A4
440.00 Hz
Definition watch_buzzer.h:98
+
BUZZER_NOTE_D7
@ BUZZER_NOTE_D7
2349.32 Hz
Definition watch_buzzer.h:127
+
BUZZER_NOTE_F5SHARP_G5FLAT
@ BUZZER_NOTE_F5SHARP_G5FLAT
739.99 Hz
Definition watch_buzzer.h:107
+
BUZZER_NOTE_C6SHARP_D6FLAT
@ BUZZER_NOTE_C6SHARP_D6FLAT
1108.73 Hz
Definition watch_buzzer.h:114
+
BUZZER_NOTE_A7SHARP_B7FLAT
@ BUZZER_NOTE_A7SHARP_B7FLAT
3729.31 Hz
Definition watch_buzzer.h:135
+
BUZZER_NOTE_F7
@ BUZZER_NOTE_F7
2793.83 Hz
Definition watch_buzzer.h:130
+
BUZZER_NOTE_A3
@ BUZZER_NOTE_A3
220.00 Hz
Definition watch_buzzer.h:86
+
BUZZER_NOTE_F6SHARP_G6FLAT
@ BUZZER_NOTE_F6SHARP_G6FLAT
1479.98 Hz
Definition watch_buzzer.h:119
+
BUZZER_NOTE_B4
@ BUZZER_NOTE_B4
493.88 Hz
Definition watch_buzzer.h:100
+
BUZZER_NOTE_A5
@ BUZZER_NOTE_A5
880.00 Hz
Definition watch_buzzer.h:110
+
BUZZER_NOTE_C5SHARP_D5FLAT
@ BUZZER_NOTE_C5SHARP_D5FLAT
554.37 Hz
Definition watch_buzzer.h:102
+
BUZZER_NOTE_A4SHARP_B4FLAT
@ BUZZER_NOTE_A4SHARP_B4FLAT
466.16 Hz
Definition watch_buzzer.h:99
+
BUZZER_NOTE_C7
@ BUZZER_NOTE_C7
2093.00 Hz
Definition watch_buzzer.h:125
+
BUZZER_NOTE_F6
@ BUZZER_NOTE_F6
1396.91 Hz
Definition watch_buzzer.h:118
+
BUZZER_NOTE_C4
@ BUZZER_NOTE_C4
261.63 Hz
Definition watch_buzzer.h:89
+
BUZZER_NOTE_F2
@ BUZZER_NOTE_F2
87.31 Hz
Definition watch_buzzer.h:70
+
BUZZER_NOTE_G2SHARP_A2FLAT
@ BUZZER_NOTE_G2SHARP_A2FLAT
103.83 Hz
Definition watch_buzzer.h:73
+
BUZZER_NOTE_A8
@ BUZZER_NOTE_A8
7040.00 Hz
Definition watch_buzzer.h:146
+
BUZZER_NOTE_A2
@ BUZZER_NOTE_A2
110.00 Hz
Definition watch_buzzer.h:74
+
BUZZER_NOTE_F4SHARP_G4FLAT
@ BUZZER_NOTE_F4SHARP_G4FLAT
369.99 Hz
Definition watch_buzzer.h:95
+
BUZZER_NOTE_E2
@ BUZZER_NOTE_E2
82.41 Hz
Definition watch_buzzer.h:69
+
BUZZER_NOTE_G3
@ BUZZER_NOTE_G3
196.00 Hz
Definition watch_buzzer.h:84
+
BUZZER_NOTE_F2SHARP_G2FLAT
@ BUZZER_NOTE_F2SHARP_G2FLAT
92.50 Hz
Definition watch_buzzer.h:71
+
BUZZER_NOTE_E5
@ BUZZER_NOTE_E5
659.25 Hz
Definition watch_buzzer.h:105
+
BUZZER_NOTE_D2SHARP_E2FLAT
@ BUZZER_NOTE_D2SHARP_E2FLAT
77.78 Hz
Definition watch_buzzer.h:68
+
BUZZER_NOTE_C3SHARP_D3FLAT
@ BUZZER_NOTE_C3SHARP_D3FLAT
138.59 Hz
Definition watch_buzzer.h:78
+
BUZZER_NOTE_C8SHARP_D8FLAT
@ BUZZER_NOTE_C8SHARP_D8FLAT
4434.92 Hz
Definition watch_buzzer.h:138
+
BUZZER_NOTE_E8
@ BUZZER_NOTE_E8
5274.04 Hz
Definition watch_buzzer.h:141
+
BUZZER_NOTE_C3
@ BUZZER_NOTE_C3
130.81 Hz
Definition watch_buzzer.h:77
+
BUZZER_NOTE_D2
@ BUZZER_NOTE_D2
73.42 Hz
Definition watch_buzzer.h:67
+
BUZZER_NOTE_D8
@ BUZZER_NOTE_D8
4698.63 Hz
Definition watch_buzzer.h:139
+
BUZZER_NOTE_A6
@ BUZZER_NOTE_A6
1760.00 Hz
Definition watch_buzzer.h:122
+
BUZZER_NOTE_F8SHARP_G8FLAT
@ BUZZER_NOTE_F8SHARP_G8FLAT
5919.91 Hz
Definition watch_buzzer.h:143
+
BUZZER_NOTE_F4
@ BUZZER_NOTE_F4
349.23 Hz
Definition watch_buzzer.h:94
+
BUZZER_NOTE_A8SHARP_B8FLAT
@ BUZZER_NOTE_A8SHARP_B8FLAT
7458.62 Hz
Definition watch_buzzer.h:147
+
BUZZER_NOTE_A7
@ BUZZER_NOTE_A7
3520.00 Hz
Definition watch_buzzer.h:134
+
BUZZER_NOTE_G5
@ BUZZER_NOTE_G5
783.99 Hz
Definition watch_buzzer.h:108
+
BUZZER_NOTE_C5
@ BUZZER_NOTE_C5
523.25 Hz
Definition watch_buzzer.h:101
+
BUZZER_NOTE_G2
@ BUZZER_NOTE_G2
98.00 Hz
Definition watch_buzzer.h:72
+
BUZZER_NOTE_B3
@ BUZZER_NOTE_B3
246.94 Hz
Definition watch_buzzer.h:88
+
BUZZER_NOTE_D3SHARP_E3FLAT
@ BUZZER_NOTE_D3SHARP_E3FLAT
155.56 Hz
Definition watch_buzzer.h:80
+
BUZZER_NOTE_F3
@ BUZZER_NOTE_F3
174.61 Hz
Definition watch_buzzer.h:82
+
BUZZER_NOTE_G8SHARP_A8FLAT
@ BUZZER_NOTE_G8SHARP_A8FLAT
6644.88 Hz
Definition watch_buzzer.h:145
+
BUZZER_NOTE_F7SHARP_G7FLAT
@ BUZZER_NOTE_F7SHARP_G7FLAT
2959.96 Hz
Definition watch_buzzer.h:131
+
BUZZER_NOTE_G7SHARP_A7FLAT
@ BUZZER_NOTE_G7SHARP_A7FLAT
3322.44 Hz
Definition watch_buzzer.h:133
+
BUZZER_NOTE_A1
@ BUZZER_NOTE_A1
55.00 Hz
Definition watch_buzzer.h:62
+
BUZZER_NOTE_G6SHARP_A6FLAT
@ BUZZER_NOTE_G6SHARP_A6FLAT
1661.22 Hz
Definition watch_buzzer.h:121
watch.h
diff --git a/watch__deepsleep_8h_source.html b/watch__deepsleep_8h_source.html index 274a4f3d..478a2ef9 100644 --- a/watch__deepsleep_8h_source.html +++ b/watch__deepsleep_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_deepsleep.h Source File @@ -30,7 +30,7 @@ - + +
diff --git a/watch__extint_8h_source.html b/watch__extint_8h_source.html index 8e61d829..1ed80904 100644 --- a/watch__extint_8h_source.html +++ b/watch__extint_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_extint.h Source File @@ -30,7 +30,7 @@ - + +
29#include "hal_ext_irq.h"
30
42
+
44typedef enum watch_interrupt_trigger {
45 INTERRUPT_TRIGGER_NONE = 0,
46 INTERRUPT_TRIGGER_RISING,
47 INTERRUPT_TRIGGER_FALLING,
48 INTERRUPT_TRIGGER_BOTH,
49} watch_interrupt_trigger;
+
50
52void watch_enable_external_interrupts(void);
53
@@ -121,7 +128,7 @@ $(function() {
77void watch_register_interrupt_callback(const uint8_t pin, ext_irq_cb_t callback, watch_interrupt_trigger trigger);
78
80#endif
-
watch_interrupt_trigger
watch_interrupt_trigger
An enum defining the types of interrupt trigger you wish to scan for.
Definition: watch_extint.h:44
+
watch_interrupt_trigger
watch_interrupt_trigger
An enum defining the types of interrupt trigger you wish to scan for.
Definition watch_extint.h:44
watch_disable_external_interrupts
void watch_disable_external_interrupts(void)
Disables the external interrupt controller.
watch_enable_external_interrupts
void watch_enable_external_interrupts(void)
Enables the external interrupt controller.
watch_register_interrupt_callback
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.
@@ -129,7 +136,7 @@ $(function() { diff --git a/watch__gpio_8h_source.html b/watch__gpio_8h_source.html index 622342fd..51012271 100644 --- a/watch__gpio_8h_source.html +++ b/watch__gpio_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_gpio.h Source File @@ -30,7 +30,7 @@ - + +
diff --git a/watch__i2c_8h_source.html b/watch__i2c_8h_source.html index 1608cb15..7aabed86 100644 --- a/watch__i2c_8h_source.html +++ b/watch__i2c_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_i2c.h Source File @@ -30,7 +30,7 @@ - + +
diff --git a/watch__led_8h_source.html b/watch__led_8h_source.html index 60c02674..ff62c0e9 100644 --- a/watch__led_8h_source.html +++ b/watch__led_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_led.h Source File @@ -30,7 +30,7 @@ - + +
diff --git a/watch__private_8h_source.html b/watch__private_8h_source.html index 337fed0a..585da300 100644 --- a/watch__private_8h_source.html +++ b/watch__private_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_private.h Source File @@ -30,7 +30,7 @@ - + +
diff --git a/watch__private__buzzer_8h_source.html b/watch__private__buzzer_8h_source.html index fde4b853..ef07379a 100644 --- a/watch__private__buzzer_8h_source.html +++ b/watch__private__buzzer_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_private_buzzer.h Source File @@ -30,7 +30,7 @@ - + +
31uint16_t sequence_length(int8_t *sequence);
32
33#endif
-
NotePeriods
const uint16_t NotePeriods[108]
An array of periods for all the notes on a piano, corresponding to the names in BuzzerNote.
Definition: watch_private_buzzer.h:29
+
NotePeriods
const uint16_t NotePeriods[108]
An array of periods for all the notes on a piano, corresponding to the names in BuzzerNote.
Definition watch_private_buzzer.h:29
diff --git a/watch__private__display_8h_source.html b/watch__private__display_8h_source.html index 74b0f33e..ca9ecfc8 100644 --- a/watch__private__display_8h_source.html +++ b/watch__private__display_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_private_display.h Source File @@ -30,7 +30,7 @@ - + +
diff --git a/watch__rtc_8h_source.html b/watch__rtc_8h_source.html index e0b1606e..9d07e04d 100644 --- a/watch__rtc_8h_source.html +++ b/watch__rtc_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_rtc.h Source File @@ -30,7 +30,7 @@ - + +
41
42#define WATCH_RTC_REFERENCE_YEAR (2020)
43
+
44typedef union {
45 struct {
46 uint32_t second : 6; // 0-59
@@ -120,6 +126,7 @@ $(function() {
52 } unit;
53 uint32_t reg; // the bit-packed value as expected by the RTC peripheral's CLOCK register.
54} watch_date_time;
+
55
56typedef enum watch_rtc_alarm_match {
57 ALARM_MATCH_DISABLED = 0,
@@ -168,12 +175,12 @@ $(function() {
watch_rtc_set_date_time
void watch_rtc_set_date_time(watch_date_time date_time)
Sets the date and time.
watch_rtc_register_periodic_callback
void watch_rtc_register_periodic_callback(ext_irq_cb_t callback, uint8_t frequency)
Registers a callback that will be called at a configurable period.
watch_rtc_freqcorr_write
void watch_rtc_freqcorr_write(int16_t value, int16_t sign)
Adjusts frequency correction in single register write. Not waiting for syncronisation to save power -...
-
watch_date_time
Definition: watch_rtc.h:44
+
watch_date_time
Definition watch_rtc.h:44
watch.h
diff --git a/watch__slcd_8h_source.html b/watch__slcd_8h_source.html index 2fff67af..758a07fe 100644 --- a/watch__slcd_8h_source.html +++ b/watch__slcd_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_slcd.h Source File @@ -30,7 +30,7 @@ - + +
28#include "watch.h"
29
43
+
45typedef enum WatchIndicatorSegment {
46 WATCH_INDICATOR_SIGNAL = 0,
47 WATCH_INDICATOR_BELL,
@@ -113,6 +119,7 @@ $(function() {
49 WATCH_INDICATOR_24H,
50 WATCH_INDICATOR_LAP
51} WatchIndicatorSegment;
+
52
56void watch_enable_display(void);
57
@@ -144,32 +151,32 @@ $(function() {
145
149void watch_stop_tick_animation(void);
151#endif
-
watch_set_colon
void watch_set_colon(void)
Turns the colon segment on.
Definition: watch_private_display.c:140
+
watch_set_colon
void watch_set_colon(void)
Turns the colon segment on.
Definition watch_private_display.c:140
watch_enable_display
void watch_enable_display(void)
Enables the Segment LCD display. Call this before attempting to set pixels or display strings.
-
watch_display_string
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....
Definition: watch_private_display.c:126
+
watch_display_string
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....
Definition watch_private_display.c:126
watch_tick_animation_is_running
bool watch_tick_animation_is_running(void)
Checks if the tick animation is currently running.
-
WatchIndicatorSegment
WatchIndicatorSegment
An enum listing the icons and indicators available on the watch.
Definition: watch_slcd.h:45
+
WatchIndicatorSegment
WatchIndicatorSegment
An enum listing the icons and indicators available on the watch.
Definition watch_slcd.h:45
watch_set_pixel
void watch_set_pixel(uint8_t com, uint8_t seg)
Sets a pixel. Use this to manually set a pixel with a given common and segment number....
-
watch_clear_colon
void watch_clear_colon(void)
Turns the colon segment off.
Definition: watch_private_display.c:144
+
watch_clear_colon
void watch_clear_colon(void)
Turns the colon segment off.
Definition watch_private_display.c:144
watch_start_character_blink
void watch_start_character_blink(char character, uint32_t duration)
Blinks a single character in position 7. Does not affect other positions.
-
watch_clear_indicator
void watch_clear_indicator(WatchIndicatorSegment indicator)
Clears an indicator on the LCD. Use this to turn off one of the indicator segments.
Definition: watch_private_display.c:155
+
watch_clear_indicator
void watch_clear_indicator(WatchIndicatorSegment indicator)
Clears an indicator on the LCD. Use this to turn off one of the indicator segments.
Definition watch_private_display.c:155
watch_stop_blink
void watch_stop_blink(void)
Stops and clears all blinking segments.
watch_start_tick_animation
void watch_start_tick_animation(uint32_t duration)
Begins a two-segment "tick-tock" animation in position 8.
-
watch_clear_all_indicators
void watch_clear_all_indicators(void)
Clears all indicator segments.
Definition: watch_private_display.c:162
-
watch_set_indicator
void watch_set_indicator(WatchIndicatorSegment indicator)
Sets an indicator on the LCD. Use this to turn on one of the indicator segments.
Definition: watch_private_display.c:148
+
watch_clear_all_indicators
void watch_clear_all_indicators(void)
Clears all indicator segments.
Definition watch_private_display.c:162
+
watch_set_indicator
void watch_set_indicator(WatchIndicatorSegment indicator)
Sets an indicator on the LCD. Use this to turn on one of the indicator segments.
Definition watch_private_display.c:148
watch_clear_pixel
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....
watch_clear_display
void watch_clear_display(void)
Clears all segments of the display, including incicators and the colon.
watch_stop_tick_animation
void watch_stop_tick_animation(void)
Stops the tick/tock animation and clears all animating segments.
-
WATCH_INDICATOR_PM
@ WATCH_INDICATOR_PM
The PM indicator, indicating that a time is in the afternoon.
Definition: watch_slcd.h:48
-
WATCH_INDICATOR_BELL
@ WATCH_INDICATOR_BELL
The small bell indicating that an alarm is set.
Definition: watch_slcd.h:47
-
WATCH_INDICATOR_SIGNAL
@ WATCH_INDICATOR_SIGNAL
The hourly signal indicator; also useful for indicating that sensors are on.
Definition: watch_slcd.h:46
-
WATCH_INDICATOR_LAP
@ WATCH_INDICATOR_LAP
The LAP indicator; the F-91W uses this in its stopwatch UI.
Definition: watch_slcd.h:50
-
WATCH_INDICATOR_24H
@ WATCH_INDICATOR_24H
The 24H indicator, indicating that the watch is in a 24-hour mode.
Definition: watch_slcd.h:49
+
WATCH_INDICATOR_PM
@ WATCH_INDICATOR_PM
The PM indicator, indicating that a time is in the afternoon.
Definition watch_slcd.h:48
+
WATCH_INDICATOR_BELL
@ WATCH_INDICATOR_BELL
The small bell indicating that an alarm is set.
Definition watch_slcd.h:47
+
WATCH_INDICATOR_SIGNAL
@ WATCH_INDICATOR_SIGNAL
The hourly signal indicator; also useful for indicating that sensors are on.
Definition watch_slcd.h:46
+
WATCH_INDICATOR_LAP
@ WATCH_INDICATOR_LAP
The LAP indicator; the F-91W uses this in its stopwatch UI.
Definition watch_slcd.h:50
+
WATCH_INDICATOR_24H
@ WATCH_INDICATOR_24H
The 24H indicator, indicating that the watch is in a 24-hour mode.
Definition watch_slcd.h:49
watch.h
diff --git a/watch__spi_8h_source.html b/watch__spi_8h_source.html index 0f9ed68a..47b6102c 100644 --- a/watch__spi_8h_source.html +++ b/watch__spi_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_spi.h Source File @@ -30,7 +30,7 @@ - + +
diff --git a/watch__storage_8h_source.html b/watch__storage_8h_source.html index 9aaa8a04..15b8a11e 100644 --- a/watch__storage_8h_source.html +++ b/watch__storage_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_storage.h Source File @@ -30,7 +30,7 @@ - + +
diff --git a/watch__uart_8h_source.html b/watch__uart_8h_source.html index 81745c8a..54a3e992 100644 --- a/watch__uart_8h_source.html +++ b/watch__uart_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_uart.h Source File @@ -30,7 +30,7 @@ - + +
diff --git a/watch__utility_8h_source.html b/watch__utility_8h_source.html index 273e7552..7f6f8c68 100644 --- a/watch__utility_8h_source.html +++ b/watch__utility_8h_source.html @@ -3,7 +3,7 @@ - + Sensor Watch: watch-library/shared/watch/watch_utility.h Source File @@ -30,7 +30,7 @@ - + +
34#include "watch.h"
35
40
+
41typedef struct {
42 uint8_t seconds; // 0-59
43 uint8_t minutes; // 0-59
44 uint8_t hours; // 0-23
45 uint32_t days; // 0-4294967295
46} watch_duration_t;
+
47
52const char * watch_utility_get_weekday(watch_date_time date_time);
53
@@ -147,26 +154,26 @@ $(function() {
165uint32_t watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds);
166
167#endif
-
watch_utility_offset_timestamp
uint32_t watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds)
Offset a timestamp by a given amount.
Definition: watch_utility.c:311
-
watch_utility_get_weeknumber
uint8_t watch_utility_get_weeknumber(uint16_t year, uint8_t month, uint8_t day)
Returns a number between 1-53 representing the weeknumber according to ISO8601 : First week of the ye...
Definition: watch_utility.c:45
-
watch_utility_thermistor_temperature
float watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance)
Returns a temperature in degrees Celsius for a given thermistor voltage divider circuit.
Definition: watch_utility.c:291
-
watch_utility_get_iso8601_weekday_number
uint8_t watch_utility_get_iso8601_weekday_number(uint16_t year, uint8_t month, uint8_t day)
Returns a number between 1-7 representing the weekday according to ISO8601 : week starts on Monday an...
Definition: watch_utility.c:34
-
watch_utility_days_since_new_year
uint16_t watch_utility_days_since_new_year(uint16_t year, uint8_t month, uint8_t day)
Returns a number between 1-366 representing the elapsed days since January 1st the same year.
Definition: watch_utility.c:86
-
watch_utility_date_time_from_unix_time
watch_date_time watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset)
Returns a watch_date_time struct for a given UNIX time and UTC offset.
Definition: watch_utility.c:198
-
watch_utility_convert_to_12_hour
bool watch_utility_convert_to_12_hour(watch_date_time *date_time)
Converts a watch_date_time for 12-hour display.
Definition: watch_utility.c:284
-
watch_utility_seconds_to_duration
watch_duration_t watch_utility_seconds_to_duration(uint32_t seconds)
Converts a duration in seconds to a watch_duration_t struct.
Definition: watch_utility.c:273
-
watch_utility_date_time_convert_zone
watch_date_time watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset)
Converts a time from a given time zone to another time zone.
Definition: watch_utility.c:268
-
watch_utility_convert_to_unix_time
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.
Definition: watch_utility.c:170
-
watch_utility_get_weekday
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 wa...
Definition: watch_utility.c:28
-
is_leap
uint8_t is_leap(uint16_t year)
Returns 1 if year is leap and 0 otherwise.
Definition: watch_utility.c:80
-
watch_utility_date_time_to_unix_time
uint32_t watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset)
Returns the UNIX time (seconds since 1970) for a given watch_date_time struct.
Definition: watch_utility.c:188
-
watch_duration_t
Definition: watch_utility.h:41
-
watch_date_time
Definition: watch_rtc.h:44
+
watch_utility_offset_timestamp
uint32_t watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds)
Offset a timestamp by a given amount.
Definition watch_utility.c:311
+
watch_utility_get_weeknumber
uint8_t watch_utility_get_weeknumber(uint16_t year, uint8_t month, uint8_t day)
Returns a number between 1-53 representing the weeknumber according to ISO8601 : First week of the ye...
Definition watch_utility.c:45
+
watch_utility_thermistor_temperature
float watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance)
Returns a temperature in degrees Celsius for a given thermistor voltage divider circuit.
Definition watch_utility.c:291
+
watch_utility_get_iso8601_weekday_number
uint8_t watch_utility_get_iso8601_weekday_number(uint16_t year, uint8_t month, uint8_t day)
Returns a number between 1-7 representing the weekday according to ISO8601 : week starts on Monday an...
Definition watch_utility.c:34
+
watch_utility_days_since_new_year
uint16_t watch_utility_days_since_new_year(uint16_t year, uint8_t month, uint8_t day)
Returns a number between 1-366 representing the elapsed days since January 1st the same year.
Definition watch_utility.c:86
+
watch_utility_date_time_from_unix_time
watch_date_time watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset)
Returns a watch_date_time struct for a given UNIX time and UTC offset.
Definition watch_utility.c:198
+
watch_utility_convert_to_12_hour
bool watch_utility_convert_to_12_hour(watch_date_time *date_time)
Converts a watch_date_time for 12-hour display.
Definition watch_utility.c:284
+
watch_utility_seconds_to_duration
watch_duration_t watch_utility_seconds_to_duration(uint32_t seconds)
Converts a duration in seconds to a watch_duration_t struct.
Definition watch_utility.c:273
+
watch_utility_date_time_convert_zone
watch_date_time watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset)
Converts a time from a given time zone to another time zone.
Definition watch_utility.c:268
+
watch_utility_convert_to_unix_time
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.
Definition watch_utility.c:170
+
watch_utility_get_weekday
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 wa...
Definition watch_utility.c:28
+
is_leap
uint8_t is_leap(uint16_t year)
Returns 1 if year is leap and 0 otherwise.
Definition watch_utility.c:80
+
watch_utility_date_time_to_unix_time
uint32_t watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset)
Returns the UNIX time (seconds since 1970) for a given watch_date_time struct.
Definition watch_utility.c:188
+
watch_duration_t
Definition watch_utility.h:41
+
watch_date_time
Definition watch_rtc.h:44
watch.h