English
Language : 

ZAURA Datasheet, PDF (40/99 Pages) –
ZAURA RF Wireless Library
Programmer’s Reference Manual
28
ZAURA_RF_SetState
Description When the application is not required to transfer data for extended peri-
ods of time, the radio should be placed into ZAURA_RF_SLEEP state
to reduce current consumption. However, it can take over 6ms to wake
up the radio from sleep state. If the radio will only be idle for shorter
periods of time, use the ZAURA_RF_STANDBY state. It will typi-
cally take less than 2ms to initiate a transmission or receive operation
from standby state.
Because the ZAURA RF network is half duplex, it is only possible to
receive data while the radio is in the ZAURA_RF_RECEIVE state.
This state can be entered via an explicit call to this function or by con-
figuring ZAURA_RF_IdleState to ZAURA_RF_RECEIVE. When
ZAURA_RF_IdleState is set to ZAURA_RF_RECEIVE, the ZAURA
RF Wireless Library will automatically configure the radio for recep-
tion after each transmit operation completes.
Under normal circumstances, the application should never have to
explicitly set the radio to the ZAURA_RF_FREQ_SYNTH or
ZAURA_RF_TRANSMIT states. The ZAURA RF Library will auto-
matically step the radio through these states during the process of data
transfer. Furthermore, if the radio is allowed to remain in the
ZAURA_RF_TRANSMIT state after completing the transmission of a
data frame, it will emit a continuous stream of extra preambles until the
radio is placed into another state. While the radio is transmitting pre-
ambles, other ZAURA RF nodes within range will sense a busy chan-
nel and will not be able to transmit. Therefore, Zilog recommends
never setting ZAURA_RF_IdleState to ZAURA_RF_TRANSMIT.
This function returns ZAURA_RF_SUCCESS when called with a
valid state parameter; otherwise, ZAURA_RF_INVALID_PARAM is
returned.
Syntax
ZAURA_RF_STATUS ZAURA_RF_SetState( ZAURA_RF_STATE
State );
Parameters state: specifies new radio state. Permissible states are:

ZAURA_RF_SLEEP
ZAURA_RF_STANDBY
ZAURA_RF_FREQ_SYNTH
ZAURA_RF_RECEIVE
ZAURA_RF_TRANSMIT
ZAURA RF Wireless API Reference
RM006003-1011