Appiko
|
Functions | |
void | S2LPPktBasicInit (PktBasicInit *pxPktBasicInit) |
Initialize the S2LP Basic packet according to the specified parameters in the PktBasicInit struct. Notice that this function sets the autofiltering option on CRC if it is set to any value different from BASIC_NO_CRC. More... | |
void | S2LPPktBasicGetInfo (PktBasicInit *pxPktBasicInit) |
Return the S2LP Basic packet structure according to the specified parameters in the registers. More... | |
void | S2LPPktBasicAddressesInit (PktBasicAddressesInit *pxPktBasicAddresses) |
Initialize the S2LP Basic packet addresses according to the specified parameters in the PktBasicAddressesInit struct. More... | |
void | S2LPPktBasicGetAddressesInfo (PktBasicAddressesInit *pxPktBasicAddresses) |
Return the S2LP Basic packet addresses structure according to the specified parameters in the registers. More... | |
void | S2LPPktBasicSetFormat (void) |
Configure the Basic packet format as packet used by S2LP. More... | |
void | S2LPPktBasicAddressField (SFunctionalState xAddressField) |
Set the address length for S2LP Basic packets. More... | |
SFunctionalState | S2LPPktBasicGetAddressField (void) |
Specify if the Address field for S2LP Basic packets is enabled or disabled. More... | |
void | S2LPPktBasicSetPayloadLength (uint16_t nPayloadLength) |
Set the payload length for S2LP Basic packets. Since the packet length depends from the address and the control field size, this function reads the correspondent registers in order to determine the correct packet length to be written. More... | |
uint16_t | S2LPPktBasicGetPayloadLength (void) |
Return the payload length for S2LP Basic packets. Since the packet length depends from the address and the control field size, this function reads the correspondent registers in order to determine the correct payload length to be returned. More... | |
uint16_t | S2LPPktBasicGetReceivedPktLength (void) |
Return the packet length field of the received packet. More... | |
void S2LPPktBasicAddressesInit | ( | PktBasicAddressesInit * | pxPktBasicAddresses | ) |
pxPktBasicAddresses | Basic packet addresses init structure. This parameter is a pointer to PktBasicAddresses. |
None. |
Definition at line 221 of file S2LP_PktBasic.c.
void S2LPPktBasicAddressField | ( | SFunctionalState | xAddressField | ) |
xAddressField | length of ADDRESS in bytes. This parameter can be: S_ENABLE or S_DISABLE. |
None. |
Definition at line 320 of file S2LP_PktBasic.c.
void S2LPPktBasicGetAddressesInfo | ( | PktBasicAddressesInit * | pxPktBasicAddresses | ) |
pxPktBasicAddresses | Basic packet addresses init structure. This parameter is a pointer to PktBasicAddresses. |
None. |
Definition at line 272 of file S2LP_PktBasic.c.
SFunctionalState S2LPPktBasicGetAddressField | ( | void | ) |
None. |
SFunctionalState | Notifies if the address field is enabled or disabled. |
Definition at line 342 of file S2LP_PktBasic.c.
References g_xStatus.
Referenced by S2LPPktBasicSetPayloadLength().
void S2LPPktBasicGetInfo | ( | PktBasicInit * | pxPktBasicInit | ) |
pxPktBasicInit | Basic packet init structure. This parameter is a pointer to PktBasicInit. |
None. |
Definition at line 174 of file S2LP_PktBasic.c.
uint16_t S2LPPktBasicGetPayloadLength | ( | void | ) |
None. |
uint16_t | Payload length in bytes. |
Definition at line 388 of file S2LP_PktBasic.c.
References g_xStatus.
uint16_t S2LPPktBasicGetReceivedPktLength | ( | void | ) |
None. |
uint16_t | Packet length. |
Definition at line 407 of file S2LP_PktBasic.c.
References g_xStatus.
void S2LPPktBasicInit | ( | PktBasicInit * | pxPktBasicInit | ) |
pxPktBasicInit | Basic packet init structure. This parameter is a pointer to PktBasicInit. |
None. |
Definition at line 83 of file S2LP_PktBasic.c.
void S2LPPktBasicSetFormat | ( | void | ) |
void S2LPPktBasicSetPayloadLength | ( | uint16_t | nPayloadLength | ) |
nPayloadLength | payload length in bytes. This parameter is an uint16_t. |
None. |
Definition at line 366 of file S2LP_PktBasic.c.
References g_xStatus, and S2LPPktBasicGetAddressField().