Artemis Teensy Flight Software
The software on the Teensy in the Artemis cubesat.
CRC16 Class Reference

Classes

struct  crcset
 

Public Member Functions

 CRC16 ()
 Calculate CRC-16. More...
 
uint16_t set (string type)
 
uint16_t set (uint16_t polynomial=0x1021, uint16_t initialcrc=0xffff, uint16_t xorout=0x0, bool lsbfirst=false)
 
uint16_t calc (vector< uint8_t > message)
 
uint16_t calc (vector< uint8_t > message, uint16_t size)
 
uint16_t calc (string message, uint16_t size)
 
uint16_t calc (string message)
 
uint16_t calc (uint8_t *message, uint16_t size)
 
int32_t calc_file (string file_path)
 

Public Attributes

uint16_t lookup [256]
 
std::map< string, crcsettypes
 

Constructor & Destructor Documentation

◆ CRC16()

CRC16::CRC16 ( )

Calculate CRC-16.

Calculate 16-bit CRC for the indicated type, buffer and number of bytes.


The documentation for this class was generated from the following files: