
Primitives
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
Freescale Semiconductor
3-19
Returns
gErrorNoError_c
If the radio has been set in the selected test mode.
gErrorBusy_c
When SMAC is busy in other radio activity like transmitting/receiving data or
performing a channel scan, among others.
Usage
Call the MLMETestMode() function with the packet to be transmitted and the mode to be executed. See
the notes for a list of modes implemented.
This following is a list of the modes implemented (defined as Macros):
gTestModePRBS9_c
Repeated transmits a PRBS9 pattern as long as enabled
gTestModeForceIdle_c
Forces the radio to back to the original IDLE mode.
gTestModeContinuousRx_c
Sets the radio into continuous RX mode.
gTestModeContinuousTxModulated_cSets the device to continuously transmit a 10101010 pattern.
gTestModeContinuousTxUnmodulated_cSets the device to continuously transmit an unmodulated CW
3.1.25
SMACDisableInterrupts
This function is called to disable the interrupts that are used by SMAC concerning the radio/transceiver:
•
For MC1323x platform devices - radio interrupts disabled in CNTRL2 register
•
For MC1320x and MC1321x platforms: SPI interrupts and the IRQ pin from radio are disabled
Prototype
void SMACDisableInterrupts(void);
Arguments
None
Returns
Nothing
Usage
Call this function to prevent SMAC from generating radio-based interrupts.
NOTE
Be aware that interrupts must be enabled for certain SMAC functions to
operate properly.