Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
net_sleep.h File Reference
Checks if there is a sleep possibility for the stack and the max sleep time. More...
Go to the source code of this file.
Functions | |
uint32_t | arm_net_check_enter_deep_sleep_possibility (void) |
Check sleep possibility. | |
int | arm_net_enter_sleep (void) |
Set stack to sleep. | |
int | arm_net_wakeup_and_timer_synch (uint32_t sleeped_time_in_ms) |
Restart stack after sleep. |
Detailed Description
Checks if there is a sleep possibility for the stack and the max sleep time.
Checking sleep possibility.
- arm_net_check_enter_deep_sleep_possibility(), Checks whether the stack can enter a sleep cycle.
- arm_net_enter_sleep(), A function to enter sleep cycle.
- arm_net_wakeup_and_timer_synch(), Restarts the stack and synchronizes the timer.
Definition in file net_sleep.h.
Function Documentation
uint32_t arm_net_check_enter_deep_sleep_possibility | ( | void | ) |
Check sleep possibility.
- Returns:
- Time in milliseconds for sleep.
- 0, No possibility to enter deep sleep.
int arm_net_enter_sleep | ( | void | ) |
Set stack to sleep.
- Returns:
- 0 Stack stopped.
- -1 Not supported action at the moment.
int arm_net_wakeup_and_timer_synch | ( | uint32_t | sleeped_time_in_ms ) |
Restart stack after sleep.
Stack enable and synch timers after sleep.
- Parameters:
-
sleeped_time_in_ms The total sleep time in milliseconds. The stack needs to synch with this.
- Returns:
- 0 Stack restarted.
- 1 Stack can continue sleep for the time defined in sleeped_time_in_ms.
- -1 Stack already active.
Generated on Tue Jul 12 2022 12:29:02 by
