Primitives
MKW01 Simple Media Access Controller (SMAC) Reference Manual, Rev. 0.0
3-32
Freescale Semiconductor
Arguments
uint32_t additionalRFOffset
Signed value of the drift converted to uint32_t.
Returns
gErrorNoValidCondition_c
SMAC was not initialized.
gErrorNoResourcesAvailable_c The calibration feature was not enabled.
gErrorNoError_c
Everything went fine.
Usage
Use Connectivity Test (continuous tx unmodulated) and a spectrum analyzer to determine real channel
frequency. Compute the drift and divide to Fstep. Call this function with the result. The application can
store the return value in a smacErrors_t variable and handle the error in case it occurs. For example, if the
return value is gErrorBusy_c, the application can wait on this value until SMAC becomes idle.
3.18
MLMEGetAdditionalRFOffset
This function returns the latest stored frequency drift, or 0 if the feature is not enabled.
Arguments
None.
Returns
uint32_t
The signed value of the drift converted to uint32_t.
3.19
SMACSetShortSrcAddress
This function creates a message of set PIB request type, requesting PHY to change the short source address
of the node. If the message is passed succesfully to PHY, SMAC will set it’s own source address variable
to the new value, so that when SMACFillHeader is called, the updated data is filled into the header.
Arguments
uint16_t nwShortAddress: The new value of the 16 bit node address.
Returns
gErrorNoResourcesAvailable_c The PHY layer can not handle this request.
gErrorBusy_c
PHY is busy and can not process the request.
gErrorNoError_c
Everything is normal and the request was processed.