
MC1322x SMAC Primitives
MC1322x SMAC Reference Manual, Rev. 1.7
3-12
Freescale Semiconductor
Usage
Use this function like a generic MCU initialization prior commanding the transceiver.
3.2.16
MLMERXDisableRequest
Returns the radio to idle mode from receive mode. When there are not messages in the message queue the
transceiver is in idle state, in that case there is not need to call this function in order to force an idle state.
Prototype
FuncReturn_t MLMERXDisableRequest (message_t *msg);
Arguments
msg
Pointer to the RX message to be disabled.
Returns
gFailNoValidCondition_c
If the argument message is not a RX message.
gFailOutOfRange_c
If the message is not currently allocated at the messages queue
gSuccess_c
When the message was aborted or disabled.
Usage
Simply calls MLMERXDisableRequest () passing the message to be disabled as parameter.
NOTE
This function can be used to abort the reception of a message prior to a
timeout event or to disable the receiver after it was turned on without a
timeout.
3.2.17
MLMERXEnableRequest
Adds a message to the messages queue in order to put the radio into receive mode on the selected channel.
This function specifies a message structure to hold a message not yet received. This function commands
the transceiver to reception mode.
Prototype
FuncReturn_t MLMERXEnableRequest (message_t *msg, uint32_t timeout);
Arguments
msg
Pointer to the message where the received data will be stored.
timeout
Timeout value. After this time the transceiver will go to idle state if there is no
message reception. Use zero value for receive without a timeout. The timeout
value is given in MACA CLK ticks. If this is a 250 KHz frequency, then each
count on the Timeout value represents 4 micro seconds.