
Software Architecture
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
2-4
Freescale Semiconductor
rxTimeOutStatus_c,
rxAbortedStatus_c,
rxMaxStatus_c
}rxStatus_t;
Members
rxInitStatus
SMAC set this state when starting a reception.
rxProcessingReceptionStatus_c
This state is set when the SMAC is in the middle of receiving a packet.
rxSuccessStatus_c
This is one of the possible finish condition for a receiving packet that was
successfully received and could be checked at the indication functions.
rxTimeOutStatus_c
This is one of the possible finish condition for a time out condition and could be
checked at the indication functions..
rxAbortedStatus_c
This is one of the possible finish condition for a receiving packet that was not
received due to sync lost or an reception disable has been commanded and could
be checked at the indication functions.
rxMaxStatus_c
This element indicate the total number of possible reception states.
2.3.3
smacPdu_t
This structure defines the variable to be used for SMAC data buffer:
typedef struct smacPdu_tag {
uint8_t reserved[2];
uint8_t u8Data[1];
}smacPdu_t;
Members
reserved
Reserved.
u8Data
The data buffer to transmit.
2.3.4
txPacket_t
This structure defines the variable to be transmitted by SMAC. It is located in the
SMAC_Interface.h
file
and is defined as follows:
typedef struct txPacket_tag{
uint8_t u8DataLength;
smacPdu_t smacPdu;
}txPacket_t;
Members
u8DataLength
The number of bytes to transmit.
smacPdu
The data buffer to transmit.