torc-master
|
CRC class for the Spartan6 architecture. More...
#include <Spartan6Bitstream.hpp>
Public Types | |
enum | { eLen = 22 } |
Length of the CRC calculation. More... | |
Public Member Functions | |
CRC (void) | |
Default constructor. More... | |
void | reset (void) |
Function to clear the CRC calculation. More... | |
void | update (uint32_t inAddress, uint32_t inWord) |
Update the CRC with new data. More... | |
uint8_t & | operator[] (int i) |
Index operator. More... | |
operator uint32_t (void) const | |
Cast operator to return the CRC as an integer. More... | |
Data Fields | |
uint8_t | mBits [eLen] |
CRC calculation bits. More... | |
uint32_t | mValue |
CRC calculation value. More... | |
CRC class for the Spartan6 architecture.
Definition at line 42 of file Spartan6Bitstream.hpp.
anonymous enum |
|
inline |
Default constructor.
Definition at line 50 of file Spartan6Bitstream.hpp.
|
inline |
Cast operator to return the CRC as an integer.
Definition at line 81 of file Spartan6Bitstream.hpp.
|
inline |
Index operator.
Definition at line 79 of file Spartan6Bitstream.hpp.
|
inline |
Function to clear the CRC calculation.
Definition at line 52 of file Spartan6Bitstream.hpp.
Update the CRC with new data.
Definition at line 54 of file Spartan6Bitstream.hpp.
CRC calculation bits.
Definition at line 46 of file Spartan6Bitstream.hpp.
uint32_t torc::bitstream::Spartan6Bitstream::CRC::mValue |
CRC calculation value.
Definition at line 48 of file Spartan6Bitstream.hpp.