Skip to content

Commit 241f5e9

Browse files
committed
Update documentation
1 parent b52d1a6 commit 241f5e9

File tree

1 file changed

+366
-0
lines changed

1 file changed

+366
-0
lines changed

Diff for: docs/api.md

+366
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,366 @@
1+
# Summary
2+
3+
Members | Descriptions
4+
--------------------------------|---------------------------------------------
5+
`class ` [`LowPowerPortentaH7`](#class_low_power_portenta_h7) |
6+
`class ` [`LowPowerStandbyType`](#class_low_power_standby_type) |
7+
`class ` [`RTCWakeupDelay`](#class_r_t_c_wakeup_delay) |
8+
`class ` [`LowPowerStandbyType::UntilEitherClass`](#class_low_power_standby_type_1_1_until_either_class) |
9+
`class ` [`LowPowerStandbyType::UntilPinActivityClass`](#class_low_power_standby_type_1_1_until_pin_activity_class) |
10+
`class ` [`LowPowerStandbyType::UntilTimeElapsedClass`](#class_low_power_standby_type_1_1_until_time_elapsed_class) |
11+
`struct ` [`LowPowerPortentaH7::ArgumentsAreCorrect`](#struct_low_power_portenta_h7_1_1_arguments_are_correct) |
12+
`struct ` [`LowPowerPortentaH7::ArgumentsAreCorrect< U, T >`](#struct_low_power_portenta_h7_1_1_arguments_are_correct_3_01_u_00_01_t_01_4) |
13+
`struct ` [`LowPowerPortentaH7::ArgumentsAreCorrect< U, T, Args... >`](#struct_low_power_portenta_h7_1_1_arguments_are_correct_3_01_u_00_01_t_00_01_args_8_8_8_01_4) |
14+
15+
# class `LowPowerPortentaH7` <a id="class_low_power_portenta_h7" class="anchor"></a>
16+
17+
## Summary
18+
19+
Members | Descriptions
20+
--------------------------------|---------------------------------------------
21+
| [`LowPowerPortentaH7`](#class_low_power_portenta_h7_1af7fac6e5697576795570e4962911ece1) | |
22+
| [`LowPowerPortentaH7`](#class_low_power_portenta_h7_1ad36171462fa9a3c84abc3ea616574b31) | |
23+
| [`operator=`](#class_low_power_portenta_h7_1a0459931bef15d942402ed736545cb37e) | |
24+
| [`operator=`](#class_low_power_portenta_h7_1a2b11ffce1fe9f1b57caa92b22c921ed0) | |
25+
| [`allowDeepSleep`](#class_low_power_portenta_h7_1a7ed518f8205a0b7306d23b7e2a22e82b) | Make Deep Sleep possible in the default case. |
26+
| [`canDeepSleep`](#class_low_power_portenta_h7_1a07d9e0f356e40ac70655e279fbad87a9) | Check if Deep Sleep is possible or not at the moment. |
27+
| [`checkOptionBytes`](#class_low_power_portenta_h7_1a7519d3acf693f450af84312576d8e669) | Check if the option bytes are correct to enter Standby Mode. |
28+
| [`modeWasD1Standby`](#class_low_power_portenta_h7_1a4eb99fd03e8891f93d43aca4ea2329f9) | Check if the D1 domain was in Standby Mode or not. |
29+
| [`modeWasD2Standby`](#class_low_power_portenta_h7_1a81e1c97f6411de6c6df390f7cb1ef8dc) | Check if the D2 domain was in Standby Mode or not. |
30+
| [`modeWasStandby`](#class_low_power_portenta_h7_1afb2fc28d8a59bc34799e4c83a746f7c4) | Check if the whole microcontroller was in Standby Mode or not. |
31+
| [`modeWasStop`](#class_low_power_portenta_h7_1a8420caa1148e61bc4d40e9627866afe3) | Check if the whole microcontroller was in Stop Mode or not. |
32+
| [`__attribute__`](#class_low_power_portenta_h7_1ae9b5f1b182da16b7aff3945c0f5e2718) | Check how many Deep Sleep locks are held at the moment. |
33+
| [`prepareOptionBytes`](#class_low_power_portenta_h7_1abdc0ce13b68d3a2188702690997af2ae) | Prepare the option bytes for entry into Standby Mode. |
34+
| [`resetPreviousMode`](#class_low_power_portenta_h7_1a6f09b3ffe26355372f287ab90a451cc2) | Reset the flags behind the modeWas...() functions. |
35+
| [`standbyM4`](#class_low_power_portenta_h7_1a9e07fd4f7895a7753e7e28f99aca1ace) | Make the M4 core enter Standby Mode. |
36+
| [`standbyM7`](#class_low_power_portenta_h7_1a1eb5cec6e9604a48074f1c10ef5e7fb0) | Make the M7 core enter Standby Mode. |
37+
| [`timeSinceBoot`](#class_low_power_portenta_h7_1a4758c25574b6d099545ac8d55eff6f68) | Time since the board was booted. |
38+
| [`timeSpentIdle`](#class_low_power_portenta_h7_1ad42fdfa6885d8e0fdca5aa012fdb4c60) | Time spent in idle. |
39+
| [`timeSpentInSleep`](#class_low_power_portenta_h7_1a994eb6fcc0382515a82b81fa37ca9f3c) | Time spent in Sleep Mode. |
40+
| [`timeSpentInDeepSleep`](#class_low_power_portenta_h7_1a146eb61800a74360687fd34b456c0b44) | Time spent in Deep Sleep Mode. |
41+
| [`getInstance`](#class_low_power_portenta_h7_1aa852067ffc101c0cb7ac526cc91080b4) | |
42+
43+
## Members
44+
45+
### `LowPowerPortentaH7` <a id="class_low_power_portenta_h7_1af7fac6e5697576795570e4962911ece1" class="anchor"></a>
46+
47+
```cpp
48+
LowPowerPortentaH7(const LowPowerPortentaH7 &) = delete
49+
```
50+
51+
<hr />
52+
53+
### `LowPowerPortentaH7` <a id="class_low_power_portenta_h7_1ad36171462fa9a3c84abc3ea616574b31" class="anchor"></a>
54+
55+
```cpp
56+
LowPowerPortentaH7( LowPowerPortentaH7 &&) = delete
57+
```
58+
59+
<hr />
60+
61+
### `operator=` <a id="class_low_power_portenta_h7_1a0459931bef15d942402ed736545cb37e" class="anchor"></a>
62+
63+
```cpp
64+
LowPowerPortentaH7 & operator=(const LowPowerPortentaH7 &) = delete
65+
```
66+
67+
<hr />
68+
69+
### `operator=` <a id="class_low_power_portenta_h7_1a2b11ffce1fe9f1b57caa92b22c921ed0" class="anchor"></a>
70+
71+
```cpp
72+
LowPowerPortentaH7 & operator=( LowPowerPortentaH7 &&) = delete
73+
```
74+
75+
<hr />
76+
77+
### `allowDeepSleep` <a id="class_low_power_portenta_h7_1a7ed518f8205a0b7306d23b7e2a22e82b" class="anchor"></a>
78+
79+
```cpp
80+
void allowDeepSleep() const
81+
```
82+
83+
Make Deep Sleep possible in the default case.
84+
85+
<hr />
86+
87+
### `canDeepSleep` <a id="class_low_power_portenta_h7_1a07d9e0f356e40ac70655e279fbad87a9" class="anchor"></a>
88+
89+
```cpp
90+
bool canDeepSleep() const
91+
```
92+
93+
Check if Deep Sleep is possible or not at the moment.
94+
95+
#### Returns
96+
Possible: true. Not possible: false.
97+
<hr />
98+
99+
### `checkOptionBytes` <a id="class_low_power_portenta_h7_1a7519d3acf693f450af84312576d8e669" class="anchor"></a>
100+
101+
```cpp
102+
LowPowerReturnCode checkOptionBytes() const
103+
```
104+
105+
Check if the option bytes are correct to enter Standby Mode.
106+
107+
#### Returns
108+
A constant from the LowPowerReturnCode enum.
109+
<hr />
110+
111+
### `modeWasD1Standby` <a id="class_low_power_portenta_h7_1a4eb99fd03e8891f93d43aca4ea2329f9" class="anchor"></a>
112+
113+
```cpp
114+
bool modeWasD1Standby() const
115+
```
116+
117+
Check if the D1 domain was in Standby Mode or not.
118+
119+
#### Returns
120+
Was: true. Was not: false;
121+
<hr />
122+
123+
### `modeWasD2Standby` <a id="class_low_power_portenta_h7_1a81e1c97f6411de6c6df390f7cb1ef8dc" class="anchor"></a>
124+
125+
```cpp
126+
bool modeWasD2Standby() const
127+
```
128+
129+
Check if the D2 domain was in Standby Mode or not.
130+
131+
#### Returns
132+
Was: true. Was not: false;
133+
<hr />
134+
135+
### `modeWasStandby` <a id="class_low_power_portenta_h7_1afb2fc28d8a59bc34799e4c83a746f7c4" class="anchor"></a>
136+
137+
```cpp
138+
bool modeWasStandby() const
139+
```
140+
141+
Check if the whole microcontroller was in Standby Mode or not.
142+
143+
#### Returns
144+
Was: true. Was not: false;
145+
<hr />
146+
147+
### `modeWasStop` <a id="class_low_power_portenta_h7_1a8420caa1148e61bc4d40e9627866afe3" class="anchor"></a>
148+
149+
```cpp
150+
bool modeWasStop() const
151+
```
152+
153+
Check if the whole microcontroller was in Stop Mode or not.
154+
155+
#### Returns
156+
Was: true. Was not: false;
157+
<hr />
158+
159+
### `__attribute__` <a id="class_low_power_portenta_h7_1ae9b5f1b182da16b7aff3945c0f5e2718" class="anchor"></a>
160+
161+
```cpp
162+
__attribute__((deprecated("The numberOfDeepSleepLocks() function" " is experimental and should not be used in production code"))) const
163+
```
164+
165+
Check how many Deep Sleep locks are held at the moment.
166+
167+
#### Returns
168+
The number held.
169+
<hr />
170+
171+
### `prepareOptionBytes` <a id="class_low_power_portenta_h7_1abdc0ce13b68d3a2188702690997af2ae" class="anchor"></a>
172+
173+
```cpp
174+
LowPowerReturnCode prepareOptionBytes() const
175+
```
176+
177+
Prepare the option bytes for entry into Standby Mode.
178+
179+
#### Returns
180+
A constant from the LowPowerReturnCode enum.
181+
<hr />
182+
183+
### `resetPreviousMode` <a id="class_low_power_portenta_h7_1a6f09b3ffe26355372f287ab90a451cc2" class="anchor"></a>
184+
185+
```cpp
186+
void resetPreviousMode() const
187+
```
188+
189+
Reset the flags behind the modeWas...() functions.
190+
191+
<hr />
192+
193+
### `standbyM4` <a id="class_low_power_portenta_h7_1a9e07fd4f7895a7753e7e28f99aca1ace" class="anchor"></a>
194+
195+
```cpp
196+
LowPowerReturnCode standbyM4() const
197+
```
198+
199+
Make the M4 core enter Standby Mode.
200+
201+
#### Returns
202+
A constant from the LowPowerReturnCode enum.
203+
<hr />
204+
205+
### `standbyM7` <a id="class_low_power_portenta_h7_1a1eb5cec6e9604a48074f1c10ef5e7fb0" class="anchor"></a>
206+
207+
```cpp
208+
template<> std::enable_if< ArgumentsAreCorrect< T, Args... >::value, LowPowerReturnCode >::type standbyM7(const T standbyType, const Args... args) const
209+
```
210+
211+
Make the M7 core enter Standby Mode.
212+
213+
#### Parameters
214+
* `standbyType` One or a combination of LowPowerStandbyType::untilPinActivity and LowPowerStandbyType::untilTimeElapsed.
215+
216+
* `args` The delay before waking up again
217+
218+
#### Returns
219+
A constant from the LowPowerReturnCode enum.
220+
<hr />
221+
222+
### `timeSinceBoot` <a id="class_low_power_portenta_h7_1a4758c25574b6d099545ac8d55eff6f68" class="anchor"></a>
223+
224+
```cpp
225+
uint64_t timeSinceBoot() const
226+
```
227+
228+
Time since the board was booted.
229+
230+
#### Returns
231+
Number of microseconds.
232+
<hr />
233+
234+
### `timeSpentIdle` <a id="class_low_power_portenta_h7_1ad42fdfa6885d8e0fdca5aa012fdb4c60" class="anchor"></a>
235+
236+
```cpp
237+
uint64_t timeSpentIdle() const
238+
```
239+
240+
Time spent in idle.
241+
242+
#### Returns
243+
Number of microseconds.
244+
<hr />
245+
246+
### `timeSpentInSleep` <a id="class_low_power_portenta_h7_1a994eb6fcc0382515a82b81fa37ca9f3c" class="anchor"></a>
247+
248+
```cpp
249+
uint64_t timeSpentInSleep() const
250+
```
251+
252+
Time spent in Sleep Mode.
253+
254+
#### Returns
255+
Number of microseconds.
256+
<hr />
257+
258+
### `timeSpentInDeepSleep` <a id="class_low_power_portenta_h7_1a146eb61800a74360687fd34b456c0b44" class="anchor"></a>
259+
260+
```cpp
261+
uint64_t timeSpentInDeepSleep() const
262+
```
263+
264+
Time spent in Deep Sleep Mode.
265+
266+
#### Returns
267+
Number of microseconds.
268+
<hr />
269+
270+
### `getInstance` <a id="class_low_power_portenta_h7_1aa852067ffc101c0cb7ac526cc91080b4" class="anchor"></a>
271+
272+
```cpp
273+
inline static LowPowerPortentaH7 & getInstance() noexcept
274+
```
275+
276+
<hr />
277+
278+
# class `LowPowerStandbyType` <a id="class_low_power_standby_type" class="anchor"></a>
279+
280+
## Summary
281+
282+
Members | Descriptions
283+
--------------------------------|---------------------------------------------
284+
285+
## Members
286+
287+
# class `RTCWakeupDelay` <a id="class_r_t_c_wakeup_delay" class="anchor"></a>
288+
289+
## Summary
290+
291+
Members | Descriptions
292+
--------------------------------|---------------------------------------------
293+
| [`RTCWakeupDelay`](#class_r_t_c_wakeup_delay_1a63465af8bb8e25aecbe1d733527d588e) | Create a delay object for the RTC wakeup. |
294+
295+
## Members
296+
297+
### `RTCWakeupDelay` <a id="class_r_t_c_wakeup_delay_1a63465af8bb8e25aecbe1d733527d588e" class="anchor"></a>
298+
299+
```cpp
300+
inline RTCWakeupDelay(const unsigned long long int hours, const unsigned long long int minutes, const unsigned long long int seconds)
301+
```
302+
303+
Create a delay object for the RTC wakeup.
304+
305+
#### Parameters
306+
* `hours` Hours to wait before wakeup.
307+
308+
* `minutes` Minutes to wait before wakeup.
309+
310+
* `seconds` Seconds to wait before wakeup.
311+
<hr />
312+
313+
# class `LowPowerStandbyType::UntilEitherClass` <a id="class_low_power_standby_type_1_1_until_either_class" class="anchor"></a>
314+
315+
## Summary
316+
317+
Members | Descriptions
318+
--------------------------------|---------------------------------------------
319+
320+
## Members
321+
322+
# class `LowPowerStandbyType::UntilPinActivityClass` <a id="class_low_power_standby_type_1_1_until_pin_activity_class" class="anchor"></a>
323+
324+
## Summary
325+
326+
Members | Descriptions
327+
--------------------------------|---------------------------------------------
328+
329+
## Members
330+
331+
# class `LowPowerStandbyType::UntilTimeElapsedClass` <a id="class_low_power_standby_type_1_1_until_time_elapsed_class" class="anchor"></a>
332+
333+
## Summary
334+
335+
Members | Descriptions
336+
--------------------------------|---------------------------------------------
337+
338+
## Members
339+
340+
# struct `LowPowerPortentaH7::ArgumentsAreCorrect` <a id="struct_low_power_portenta_h7_1_1_arguments_are_correct" class="anchor"></a>
341+
342+
## Summary
343+
344+
Members | Descriptions
345+
--------------------------------|---------------------------------------------
346+
347+
## Members
348+
349+
# struct `LowPowerPortentaH7::ArgumentsAreCorrect< U, T >` <a id="struct_low_power_portenta_h7_1_1_arguments_are_correct_3_01_u_00_01_t_01_4" class="anchor"></a>
350+
351+
## Summary
352+
353+
Members | Descriptions
354+
--------------------------------|---------------------------------------------
355+
356+
## Members
357+
358+
# struct `LowPowerPortentaH7::ArgumentsAreCorrect< U, T, Args... >` <a id="struct_low_power_portenta_h7_1_1_arguments_are_correct_3_01_u_00_01_t_00_01_args_8_8_8_01_4" class="anchor"></a>
359+
360+
## Summary
361+
362+
Members | Descriptions
363+
--------------------------------|---------------------------------------------
364+
365+
## Members
366+

0 commit comments

Comments
 (0)