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 )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Wake and sleep (lock) initialization function
sl_wake_lock_set_remote_req#
void sl_wake_lock_set_remote_req (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Signal wake-up to remote controller.
sl_wake_lock_clear_remote_req#
void sl_wake_lock_clear_remote_req (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Signal go to sleep (lock) to remote controller.
sl_wake_lock_set_req_rx_cb#
void sl_wake_lock_set_req_rx_cb (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Wake-up signal arrived from remote controller.
sl_wake_lock_clear_req_rx_cb#
void sl_wake_lock_clear_req_rx_cb (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Go to sleep (lock) signal arrived from remote controller.
sl_wake_lock_set_local#
void sl_wake_lock_set_local (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Enable sleep mode locally.
sl_wake_lock_clear_local#
void sl_wake_lock_clear_local (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Disable sleep mode locally.