void S2LPCsmaSetCcaPeriod(SCsmaPeriod xMultiplierTbit)
Set the CCA period.
void S2LPCsmaGetInfo(SCsmaInit *pxSCsmaInit)
Return the fitted structure SCsmaInit starting from the registers values.
SFunctionalState xCsmaPersistentMode
void S2LPCsmaPersistentMode(SFunctionalState xNewState)
Enables or Disables the persistent CSMA mode.
SFunctionalState
S2LP Functional state. Used to enable or disable a specific option.
SCsmaPeriod xMultiplierTbit
uint16_t S2LPCsmaGetBuCounterSeed(void)
Return the BU counter seed (BU_COUNTER_SEED register).
SFunctionalState S2LPCsmaGetCsma(void)
Gets the CSMA mode. Says if it is enabled or disabled.
SCsmaPeriod
Multiplier for Tcca time enumeration (Tcca = Multiplier*Tbit).
uint8_t S2LPCsmaGetCcaPeriod(void)
Return the CCA period.
uint8_t S2LPCsmaGetMaxNumberBackoff(void)
Return the max number of back-off.
void S2LPCsmaSeedReloadMode(SFunctionalState xNewState)
Enables or Disables the seed reload mode (if enabled it reloads the back-off generator seed using the...
void S2LPCsmaSetCcaLength(uint8_t xCcaLength)
Set the CCA length.
This file contains all the registers address and masks.
SFunctionalState S2LPCsmaGetPersistentMode(void)
Gets the persistent CSMA mode.
void S2LPCsmaSetBuPrescaler(uint8_t cBuPrescaler)
Set the BU prescaler. The CSMA back off time is given by the formula: BO = rand(2^NB)*BU.
SFunctionalState S2LPCsmaGetSeedReloadMode(void)
Gets the seed reload mode.
uint8_t S2LPCsmaGetCcaLength(void)
Return the CCA length.
void S2LPCsmaInit(SCsmaInit *pxSCsmaInit)
Initialize the S2LP CSMA according to the specified parameters in the SCsmaInit.
uint8_t S2LPCsmaGetBuPrescaler(void)
Return the BU prescaler.
Header file for S2-LP types.
void S2LPCsmaSetMaxNumberBackoff(uint8_t cMaxNb)
Set the max number of back-off. If reached S2LP stops the transmission.
void S2LPCsmaSetBuCounterSeed(uint16_t nBuCounterSeed)
Set the BU counter seed (BU_COUNTER_SEED register). The CSMA back off time is given by the formula: B...
S2LP CSMA Init structure definition.
void S2LPCsma(SFunctionalState xNewState)
Enable or Disables the CSMA.