
Primitives
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
3-10
Freescale Semiconductor
NOTE
When this function is called, a reset indication should be sent back to the
application through the MLMEResetIndication(void) callback function. It is
up to the application to handle this event.
3.1.12
MLMERadioInit
The MLMERadioInit function initializes the Radio parameters. This function must be called prior to any
radio operation. The default parameters are set inside the function:
Initialize PHY using default parameters -
— Set Channel to channel 11
— Set max power level
— Set CCA Threshold to 129
dec
Prototype
smacErrors_t MLMERadioInit(void);
Arguments
None
Returns
gErrorNoError_c
Radio initialization was performed successfully.
gErrorNoResourcesAvailable_cRadio initialization couldn't be performed.
Usage
Simply call the
MLMERadioInit
() function directly.
NOTE
•
Not executing this function could cause many SMAC API functions to
return gErrorNoValidCondition_c error code.
•
If user wishes to change initialization parameters, they must be changes
within the function.
3.1.13
MLMESetChannelRequest
This function programs the frequency synthesizer for the radio and sets the actual frequency for which the
radio transmits and receives. The function sets one of sixteen channels whose frequency corresponds to
the IEEE 802.15.4 Standard designations. The channel argument sets Channel 11 through Channel 26 as
determined by argument value “gChannel11_c” to “gChannel26_c”.
Prototype
smacErrors_t MLMESetChannelRequest(channels_t
newChannel
);