
Primitives
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
Freescale Semiconductor
3-3
3.1.3
MLMERXDisableRequest
This function returns the radio to idle mode from receive mode.
Prototype
smacErrors_t MLMERXDisableRequest(void);
Arguments
None
Returns
gErrorNoError_c
When the message was aborted or disabled
gErrorOutOfRange_c If the Radio was not in Rx state
Usage
Simply call MLMERXDisableRequest
()
.
NOTE
This function can be used to turn off the receiver before a timeout occurs or
when the receiver is in the “always on” mode.
3.1.4
MLMERXEnableRequest
This function places the radio into receive mode in anticipation of receiving a data packet.
•
The receiver is enabled on the channel previously selected by MLMESetChannelRequest ().
•
The function call passes an argument that sets a timeout value for the receive mode -
— The argument is a 32-bit value, however, the maximum value is 0x00FFFFFF
— The total time period equals: value x (transceiver timer clock period). The timer clock period
is determined by the frequency set by the MLMESetTmrPrescale function, see
Section 3.1.15,
“MLMESetTmrPrescale
”.
— If the timeout value is set to zero, the timeout function is disabled and once enabled, receive
mode will continue until a valid packet is received or a MLMERXDisableRequest is executed.
Prototype
smacErrors_t MLMERXEnableRequest(rxPacket_t *, uint32_t);
Arguments
rxPacket_t *
Location of the buffer to store the incoming data.
uint32_t
32-bit timeout value.