/*
  "CRC16_Generator"
  Library supporting generation of a CRC-16 checksum for a given dataset of 1...255 byte using CRC-16 polynomial 0x1021
  V1.0 / Copyright (C) 2026, T.Rode (DL1DUZ)

  Permission is granted to use, copy, modify, and distribute this software
  and documentation for non-commercial purposes.
*/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Methods:

uint16_t CRC16_GeneratorClass::init(const uint16_t LOOKUP_ADDRESS)

Not used. Only for backwards compatibility.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

uint16_t CRC16_GeneratorClass::crcCalculation(const uint8_t ID, const uint8_t* DATA, const uint8_t SIZE)

calculates the CRC-16 value for a given dataset

"ID" -> the ID of the dataset
        this is an arbitrary number from 0...255 used to identify individual datasets
		"ID" is part of the CRC-calculation
"DATA" -> pointer to the dataset
"SIZE" -> size of the dataset (1...255 Byte)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~