
Primitives
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
3-16
Freescale Semiconductor
FALSE
If SMAC’s promiscuous mode is inactive.
Usage
Call this function to determine current SMAC’s promiscuous mode state.
3.1.21
MLMEGetRficVersion
This function is used to read the version number of different hardware and software modules inside the
SMAC platform including version number of the radio.
Prototype
macErrors_t MLMEGetRficVersion(versionedEntity_t, uint8_t *);
Arguments
versionedEntity_t
The module for which the version is required. Possible values are:
•
gSwSmacVersion_c
•
gHwIcVersion_c - this argument returns the ID of the transceiver chip for the MC13202 and
MC1323x. The MC1323x is a single IC and this returns its ID.
uint8_t *
A pointer to the buffer where the version will be written
Returns
gErrorNoError_c
If the action is performed.
gFailOutOfRange_c
If the requested Entity is not part of the stored ones.
Usage
Call this function to determine the current IC Hardware version or the SMAC Software stack version.
3.1.22
MLMEScanRequest
A useful function is to be able to scan the different frequency channels and report the status of reported
energy. This function provides that capability:
•
From one to all 16 channels can be scanned through this function
•
Two different scan modes can be selected -
— CCA mode - the channel energy is detected and compared to a programmed threshold. A busy
channel is reported as TRUE and an idle channel is reported as FALSE
— ED mode - the he channel energy is detected and simple reported as a binary value. The format
is similar to the MLMEEnergyDetect function (see
Section 3.1.6, “MLMEEnergyDetect
)
•
The reported values are stored into a 16-byte buffet (pointer is passed as a function argument)