The NSL01 library contains the software stack to control the NSL01 LoRaWAN shield from mCloud System GmbH. The NSL01 is a professional plug & play LoRaWAN shield for a wide range of STM32 Nucleo-64 boards with Arduino Uno Rev 3 connectivity. For more information about the NSL01 LoRaWAN shield have a look at: http://www.mcloud-systems.com/nsl01-lorawan-nucleo-arduino-shield

Fork of NSL01 by mCloud Systems

Embed: (wiki syntax)

« Back to documentation index

CRC16.h File Reference

CRC16.h File Reference

Functions for NSL01 class to calculate and check CRC16. More...

Go to the source code of this file.

Functions

UINT16 CRC16_Calc (UINT8 *data, UINT16 length, UINT16 initVal)
 Function to calculate CRC16.
bool CRC16_Check (UINT8 *data, UINT16 length, UINT16 initVal)
 Function to check CRC16.

Detailed Description

Functions for NSL01 class to calculate and check CRC16.

For more information about the NSL01 LoRaWAN shield: http://www.mcloud-systems.com/nsl01-lorawan-nucleo-arduino-shield

Note:
The CRC16 files are included in the dependencies directory of the project and these files are necessary for the NSL01 class!
Author:
-
Version:
V1.0
Date:
20-June-2018

Definition in file CRC16.h.


Function Documentation

UINT16 CRC16_Calc ( UINT8 *  data,
UINT16  length,
UINT16  initVal 
)

Function to calculate CRC16.

Note:
This function calculates the one's complement of the standard 16-BIT CRC CCITT polynomial G(x) = 1 + x^5 + x^12 + x^16.
Parameters:
data: Input sequency
length: Length of input sequence
initVal: Inital value
Returns:
calculated checksum.

Definition at line 102 of file CRC16.cpp.

bool CRC16_Check ( UINT8 *  data,
UINT16  length,
UINT16  initVal 
)

Function to check CRC16.

Note:
This function checks a data block with attached CRC16.
Parameters:
data: Input sequency
length: Length of input sequence
initVal: Inital value
Returns:
true on success, false on error

Definition at line 173 of file CRC16.cpp.