Alarm Sensor Module  0.1
⇒ back to Project Page
Macros | Functions
crc.h File Reference

Contains CRC calculation functions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CRC_POLYNOM   0x04C11DB7
 used also in STM32 (0b00000100110000010001110110110111) More...
 
#define CRC_REV_POLYNOM   0xEDB88320
 reverse polynom (used also in STM32) (0b11101101101110001000001100100000) More...
 
#define CRC_START_VALUE   0xffffffff
 used as start value for CRC and for finalizing More...
 
#define CRC_INITIALIZATION   0u
 do only the initialization and return the init value More...
 
#define CRC_UPDATE   1u
 do only an updating and return the current crc value More...
 
#define CRC_FINALIZATION   2u
 do only the finalization and return the crc value More...
 
#define CRC_COMPLETE   3u
 perform a complete calculation of the crc value More...
 

Functions

uint32_t calculate_crc32 (uint8_t *, uint8_t, uint8_t)
 

Detailed Description

Contains CRC calculation functions.

Author
Michael Skutek
Date
19.01.2019
Version
0.1

Platform: AVR ATmega (tested on ATmega328)

Include Files:

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file crc.h.