OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
OSCR::CRC32::crc32_t Union Reference

Interface for handling CRC32 values. More...

#include <common/crc32_t.h>

Public Member Functions

 crc32_t ()
 Create an empty CRC32 interface.
 crc32_t (uint32_t v)
 Create a CRC32 interface using the provided value.
void reset ()
void next (uint8_t const *data)
void next (uint8_t data)
void done ()
void human (char *buffer, uint_fast8_t sizeOf=9) const

Public Attributes

uint32_t value
 The CRC32 (binary, host endian)
uint8_t b [4]
 The 4 bytes that make up the CRC32.

Detailed Description

Interface for handling CRC32 values.

Constructor & Destructor Documentation

◆ crc32_t()

OSCR::CRC32::crc32_t::crc32_t ( uint32_t v)
explicit

Create a CRC32 interface using the provided value.

Parameters
vThe binary value of the CRC32

Member Function Documentation

◆ human()

void OSCR::CRC32::crc32_t::human ( char * buffer,
uint_fast8_t sizeOf = 9 ) const

Copy a human readable CRC32 string into a buffer.

Parameters
bufferThe pointer to the destination
sizeOfThe size of the destination (default: 9)

The documentation for this union was generated from the following files:
  • C:/Developer/Projects/OSCR/oscr-firmware/include/common/crc32_t.h
  • common/crc32.cpp