![]() |
S2-LP Low Level API
v. 1.3.0
|
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... | |
| #define SM_RX_INTERM 1 |
Definition at line 231 of file SDK_WMbusStd_B.c.
| #define SM_RX_LAST 2 |
Definition at line 232 of file SDK_WMbusStd_B.c.
| #define SM_RX_NEW_PACKET 0 |
Definition at line 230 of file SDK_WMbusStd_B.c.
| 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.
| Input | Param:uint8 crcData - Data to perform the CRC-16 operation on. uint16 crcReg - Current or initial value of the CRC calculation |
| 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.
| SBool CRCCheck | ( | uint8_t * | pStart, |
| uint8_t * | pStop | ||
| ) |
Calculates the 16-bit CRC.
| Input | Param:uint8 crcData - Data to perform the CRC-16 operation on. uint16 crcReg - Current or initial value of the CRC calculation |
| 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.
| void HAL_GPIO_EXTI_Callback | ( | uint16_t | GPIO_Pin | ) |
Definition at line 342 of file SDK_WMbusStd_B.c.
| int main | ( | void | ) |
System main function.
| None |
| None |
Definition at line 440 of file SDK_WMbusStd_B.c.
1.8.14