This is the primary user interface functions for the application layer to put RF transceiver into sleep or wake it up. This function is only available to those wireless nodes that may have to disable the transceiver to save battery power.
This is the primary user interface functions for the application layer to put RF transceiver into sleep or wake it up. This function is only available to those wireless nodes that may have to disable the transceiver to save battery power.
Protocol initialization has been done.
Protocol initialization has been done.
Parameters |
Description |
BYTE Mode |
The mode of power state for the RF transceiver to be set. The possible power states are following
The mode of power state for the RF transceiver to be set. The possible power states are following
|
The status of the operation. The following are the possible status
- SUCCESS Operation successful
- ERR_TRX_FAIL Transceiver fails to go to sleep or wake up
- ERR_TX_FAIL Transmission of Data Request command failed. Only available if the input mode is POWER_STATE_WAKEUP_DR.
- ERR_RX_FAIL Failed to receive any response to Data Request command. Only available if input mode is POWER_STATE_WAKEUP_DR.
- ERR_INVLAID_INPUT Invalid input mode.
The status of the operation. The following are the possible status
- SUCCESS Operation successful
- ERR_TRX_FAIL Transceiver fails to go to sleep or wake up
- ERR_TX_FAIL Transmission of Data Request command failed. Only available if the input mode is POWER_STATE_WAKEUP_DR.
- ERR_RX_FAIL Failed to receive any response to Data Request command. Only available if input mode is POWER_STATE_WAKEUP_DR.
- ERR_INVLAID_INPUT Invalid input mode.
None
None
// put RF transceiver into sleep MiApp_TransceiverPowerState(POWER_STATE_SLEEP; // Put the MCU into sleep Sleep(); // wakes up the MCU by WDT, external interrupt or any other means // make sure that RF transceiver to wake up and send out Data Request MiApp_TransceiverPowerState(POWER_STATE_WAKEUP_DR);
// put RF transceiver into sleep MiApp_TransceiverPowerState(POWER_STATE_SLEEP; // Put the MCU into sleep Sleep(); // wakes up the MCU by WDT, external interrupt or any other means // make sure that RF transceiver to wake up and send out Data Request MiApp_TransceiverPowerState(POWER_STATE_WAKEUP_DR);