Wake-Lock#
Component that provides support for sleep and remote wake-up functionality. The UART driver is not able to receive data in EM2 (deep sleep) mode, therefore an external signal is needed to wake the controller up before UART communication. This component can be used with NCP host and NCP target applications. Waking up is automatic after signal arrival, but application has to decide about sleep. This functionality requires two dedicated pins to work. This is a No-Code component if used together with NCP Interface or NCP Host Communication Interface components.
Functions#
Macros#
Function Documentation#
sl_wake_lock_init#
void sl_wake_lock_init (void )
N/A |
Wake and sleep (lock) initialization function
44
of file common/wake_lock/sl_wake_lock.h
sl_wake_lock_set_remote_req#
void sl_wake_lock_set_remote_req (void )
N/A |
Signal wake-up to remote controller.
49
of file common/wake_lock/sl_wake_lock.h
sl_wake_lock_clear_remote_req#
void sl_wake_lock_clear_remote_req (void )
N/A |
Signal go to sleep (lock) to remote controller.
54
of file common/wake_lock/sl_wake_lock.h
sl_wake_lock_set_req_rx_cb#
void sl_wake_lock_set_req_rx_cb (void )
N/A |
Wake-up signal arrived from remote controller.
59
of file common/wake_lock/sl_wake_lock.h
sl_wake_lock_clear_req_rx_cb#
void sl_wake_lock_clear_req_rx_cb (void )
N/A |
Go to sleep (lock) signal arrived from remote controller.
64
of file common/wake_lock/sl_wake_lock.h
sl_wake_lock_set_local#
void sl_wake_lock_set_local (void )
N/A |
Enable sleep mode locally.
69
of file common/wake_lock/sl_wake_lock.h
sl_wake_lock_clear_local#
void sl_wake_lock_clear_local (void )
N/A |
Disable sleep mode locally.
74
of file common/wake_lock/sl_wake_lock.h
Macro Definition Documentation#
SL_WAKE_LOCK_ENABLE_LOCAL#
#define SL_WAKE_LOCK_ENABLE_LOCALValue:
1
48
of file common/wake_lock/config/sl_wake_lock_config.h
SL_WAKE_LOCK_ENABLE_REMOTE#
#define SL_WAKE_LOCK_ENABLE_REMOTEValue:
1
53
of file common/wake_lock/config/sl_wake_lock_config.h
SL_WAKE_LOCK_INPUT_POLARITY_ACTIVE_HIGH#
#define SL_WAKE_LOCK_INPUT_POLARITY_ACTIVE_HIGHValue:
0
59
of file common/wake_lock/config/sl_wake_lock_config.h
SL_WAKE_LOCK_OUTPUT_POLARITY_ACTIVE_HIGH#
#define SL_WAKE_LOCK_OUTPUT_POLARITY_ACTIVE_HIGHValue:
0
63
of file common/wake_lock/config/sl_wake_lock_config.h
SL_WAKE_LOCK_INPUT_PORT#
#define SL_WAKE_LOCK_INPUT_PORTValue:
gpioPortD
70
of file common/wake_lock/config/sl_wake_lock_config.h
SL_WAKE_LOCK_INPUT_PIN#
#define SL_WAKE_LOCK_INPUT_PINValue:
9
71
of file common/wake_lock/config/sl_wake_lock_config.h
SL_WAKE_LOCK_OUTPUT_PORT#
#define SL_WAKE_LOCK_OUTPUT_PORTValue:
gpioPortD
76
of file common/wake_lock/config/sl_wake_lock_config.h
SL_WAKE_LOCK_OUTPUT_PIN#
#define SL_WAKE_LOCK_OUTPUT_PINValue:
8
77
of file common/wake_lock/config/sl_wake_lock_config.h