S2-LP Low Level API  v. 1.3.0
Functions
WMbus Std A Private Functions

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...
 
uint16_t computeCrc (uint8_t *pStart, uint8_t cNBytes)
 
void fitTxBuffer ()
 
void HAL_GPIO_EXTI_Callback (uint16_t GPIO_Pin)
 
int main (void)
 System main function. More...
 

Detailed Description

Function Documentation

◆ computeCrc()

uint16_t computeCrc ( uint8_t *  pStart,
uint8_t  cNBytes 
)

Definition at line 199 of file SDK_WMbusStd_A.c.

◆ 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 181 of file SDK_WMbusStd_A.c.

◆ fitTxBuffer()

void fitTxBuffer ( )

Definition at line 212 of file SDK_WMbusStd_A.c.

◆ HAL_GPIO_EXTI_Callback()

void HAL_GPIO_EXTI_Callback ( uint16_t  GPIO_Pin)

Definition at line 257 of file SDK_WMbusStd_A.c.

◆ main()

int main ( void  )

System main function.

Parameters
None
Return values
None

Definition at line 404 of file SDK_WMbusStd_A.c.