76 #ifndef __S2LP_PKT_STACK_H 77 #define __S2LP_PKT_STACK_H 160 #define S2LPPktStackSetPreambleLength(xPreambleLength) S2LPSetPreambleLength(xPreambleLength) 168 #define S2LPPktStackGetPreambleLength() S2LPGetPreambleLength() 177 #define S2LPPktStackSetSyncLength(xSyncLength) S2LPSetSyncLength((PktSyncLength)xSyncLength) 185 #define S2LPPktStackGetSyncLength() S2LPGetSyncLength() 195 #define S2LPPktStackFilterOnCrc(xNewState) S2LPPktCommonFilterOnCrc(xNewState) 205 #define S2LPPktStackWhitening(xNewState) S2LPWhitening(xNewState) 214 #define S2LPPktStackFec(xNewState) S2LPFec(xNewState) 226 #define S2LPPktStackSetSyncWords(lSyncWords, xSyncLength) S2LPSetSyncWords(lSyncWords,xSyncLength) SFunctionalState xFilterOnMulticastAddress
void S2LPPktStackNRetx(uint8_t nRetx)
Set the number of retransmissions to be done in case of ACK loss.
uint8_t S2LPPktStackGetNReTx(void)
Returns the number of retransmission done on the transmitted packet.
SFunctionalState
S2LP Functional state. Used to enable or disable a specific option.
uint8_t cMulticastAddress
void S2LPPktStackInit(PktStackInit *pxPktStackInit)
Initialize the S2LP STack packet according to the specified parameters in the PktStackInit.
SFlagStatus
S2LP Flag status. Used to control the state of a flag.
void S2LPPktStackAckRequest(SFunctionalState xNewState)
This function will set the NO_ACK bit or reset it.
S2LP STack packet address structure definition. This structure allows users to specify the node/multi...
void S2LPPktStackGetAddressesInfo(PktStackAddressesInit *pxPktStackAddresses)
Return the S2LP STack packet addresses structure according to the specified parameters in the registe...
SFunctionalState xFilterOnBroadcastAddress
void S2LPPktStackAddressesInit(PktStackAddressesInit *pxPktStackAddresses)
Initialize the S2LP STack packet addresses according to the specified parameters in the PktStackAddre...
This file contains all the registers address and masks.
SFunctionalState xFilterOnMyAddress
PktCrcMode StackCrcMode
CRC length in bytes enumeration.
void S2LPPktStackSetFormat(void)
Configure the STack packet format for S2LP.
uint8_t cBroadcastAddress
Configuration and management of the common features of S2-LP packets.
SFunctionalState xDataWhitening
void S2LPPktStackAutoAck(SFunctionalState xNewState)
Se the AUTO_ACK bit on the receiver .
SFunctionalState xFixVarLength
void S2LPPktStackGetInfo(PktStackInit *pxPktStackInit)
Return the S2LP STack packet structure according to the specified parameters in the registers.
PktCrcMode
CRC length in bytes enumeration.
SFunctionalState cExtendedPktLenField
void S2LPPktStackSetPayloadLength(uint16_t nPayloadLength)
Set the payload length for S2LP STack packets. Since the packet length depends from the address (alwa...
uint16_t S2LPPktStackGetPayloadLength(void)
Return the payload length for S2LP STack packets. Since the packet length depends from the address an...
SFlagStatus S2LPPktStackGetTXAckRequest(void)
Get the NO_ACK bit.
S2LP STack Packet Init structure definition.
Header file for S2-LP types.
void S2LPPktStackPiggybacking(SFunctionalState xNewState)
Enable or Disable the piggybacking.