
Software Architecture
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
Freescale Semiconductor
2-7
2.3.9
smacErrors_t
This enumeration is used as the set of possible return values on most of the SMAC API functions and is
located in the
SMAC_Interface.h
:
typedef enum smacErrors_tag{
gErrorNoError_c = 0,
gErrorBusy_c,
gErrorOutOfRange_c,
gErrorNoResourcesAvailable_c,
gErrorNoValidCondition_c,
gErrorCorrupted_c,
gErrorMaxError_c
}smacErrors_t;
Members
gErrorNoError_c
SMAC accept the request and will process it. NOTE that this return value does not
necessary mean that the action requested was successful executed, it just means
that is that accepted to be process by SMAC
gErrorBusy_c
This constant is returned when SMAC layer is not on a idle state, then it can not
perform the requested action.
gErrorOutOfRange_c
One or more of the parameters used when calling the function are out of the valid
values range.
gErrorNoResourcesAvailable_c
PHY or other lower layer is not able to process SMAC request then
SMAC can not process it.
gErrorNoValidCondition_c
When requesting an action on an invalid environment. Requesting SMAC
operations when SMAC has not been initialized or requesting awake the radio
when it was not in low power mode.
gErrorCorrupted_c
Not used.
gErrorMaxError_c
This constant indicates the total number of return constants.
2.3.10
smacTestMode_t
This enumeration is used as the set of possible radio test modes that SMAC implements and is located in
the
SMAC_Interface.h
:
typedef enum smacTestMode_tag{
gTestModePRBS9_c,
gTestModeForceIdle_c,
gTestModeContinuousRx_c,
gTestModeContinuousTxModulated_c,
gTestModeContinuousTxUnmodulated_c,
gMaxTestMode_c
}smacTestMode_t;
Members
gTestModePRBS9_c
gTestModeForceIdle_c