English
Language : 

ZAURA Datasheet, PDF (65/99 Pages) –
ZAURA RF Wireless Library
Programmer’s Reference Manual
53
ZAURA_RF_SetChannel
Description The Channel parameter must be between 0 and the maximum number
of channels minus 1. The value of MaxChannels depends on which
version of the ZAURA RF Wireless Library is linked to the project.
The ZAURA RF_866p5_MHz library uses 4 channels (i.e., the chan-
nel parameter must be between 0 and 3). The ZAURA RF_915_MHz
library uses 25 channels (i.e., the channel parameter must be between 0
and 24). For specific channel frequencies, see the Radio Frequencies
section on page 3.
If the channel parameter is valid, the radio configuration is modified,
the new channel number is stored in the Ch member of the
ZAURA_RF_Params structure and ZAURA_RF_SUCCESS is
returned. If the Channel number is invalid,
ZAURA_RF_INVALID_PARAM is returned and the current channel
is not modified.
Syntax
ZAURA_RF_STATUS ZAURA_RF_SetChannel( UINT8 Channel );
Parameters Channel: The new channel on which to communicate.
Returns ZAURA_RF_SUCCESS, ZAURA_RF_INVALID_PARAM
See Also ZAURA_RF_GetChannel, ZAURA_RF_SetParams,
ZAURA_RF_PARAMS Structure
Example
ZAURA_RF_STATUS Status;
Status = ZAURA_RF_SetChannel( 1 );
RM006003-1011
ZAURA_RF_SetChannel