S2-LP Low Level API  v. 1.3.0
Macros | Functions
WMbus Std B Private Functions

Macros

#define SM_RX_NEW_PACKET   0
 
#define SM_RX_INTERM   1
 
#define SM_RX_LAST   2
 

Functions

uint16_t crcCalc (uint16_t crcReg, uint8_t crcData)
 Calculates the 16-bit CRC. The function requires that the CRC_POLYNOM is defined, which gives the wanted CRC polynom. More...
 
SBool CRCCheck (uint8_t *pStart, uint8_t *pStop)
 Calculates the 16-bit CRC. More...
 
void HAL_GPIO_EXTI_Callback (uint16_t GPIO_Pin)
 
int main (void)
 System main function. More...
 

Detailed Description

Macro Definition Documentation

◆ SM_RX_INTERM

#define SM_RX_INTERM   1

Definition at line 231 of file SDK_WMbusStd_B.c.

◆ SM_RX_LAST

#define SM_RX_LAST   2

Definition at line 232 of file SDK_WMbusStd_B.c.

◆ SM_RX_NEW_PACKET

#define SM_RX_NEW_PACKET   0

Definition at line 230 of file SDK_WMbusStd_B.c.

Function Documentation

◆ crcCalc()

uint16_t crcCalc ( uint16_t  crcReg,
uint8_t  crcData 
)

Calculates the 16-bit CRC. The function requires that the CRC_POLYNOM is defined, which gives the wanted CRC polynom.

Parameters
InputParam:uint8 crcData - Data to perform the CRC-16 operation on. uint16 crcReg - Current or initial value of the CRC calculation
Return values
LINK_STATUS: LINK_STATUS_SUCCESS LINK_STATUS_INVALID_SIZE - The data-field buffer is too large

Definition at line 185 of file SDK_WMbusStd_B.c.

◆ CRCCheck()

SBool CRCCheck ( uint8_t *  pStart,
uint8_t *  pStop 
)

Calculates the 16-bit CRC.

Parameters
InputParam:uint8 crcData - Data to perform the CRC-16 operation on. uint16 crcReg - Current or initial value of the CRC calculation
Return values
LINK_STATUS: LINK_STATUS_SUCCESS LINK_STATUS_INVALID_SIZE - The data-field buffer is too large

Definition at line 212 of file SDK_WMbusStd_B.c.

◆ HAL_GPIO_EXTI_Callback()

void HAL_GPIO_EXTI_Callback ( uint16_t  GPIO_Pin)

Definition at line 342 of file SDK_WMbusStd_B.c.

◆ main()

int main ( void  )

System main function.

Parameters
None
Return values
None

Definition at line 440 of file SDK_WMbusStd_B.c.