w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Retro::RlinkCrc16 Class Reference

FIXME_docs. More...

#include <RlinkCrc16.hpp>

Public Member Functions

 RlinkCrc16 ()
 Default constructor.
 
void Clear ()
 FIXME_docs.
 
void AddData (uint8_t data)
 FIXME_docs.
 
uint16_t Crc () const
 FIXME_docs.
 

Protected Attributes

uint16_t fCrc
 current crc value
 

Static Protected Attributes

static const uint16_t fCrc16Table [256]
 FIXME_docs.
 

Detailed Description

FIXME_docs.

Definition at line 24 of file RlinkCrc16.hpp.

Constructor & Destructor Documentation

◆ RlinkCrc16()

Retro::RlinkCrc16::RlinkCrc16 ( )
inline

Default constructor.

Definition at line 22 of file RlinkCrc16.ipp.

Member Function Documentation

◆ Clear()

void Retro::RlinkCrc16::Clear ( )
inline

FIXME_docs.

Definition at line 29 of file RlinkCrc16.ipp.

References fCrc.

Referenced by Retro::RlinkPacketBufRcv::AcceptPacket(), and Retro::RlinkPacketBufSnd::Init().

◆ AddData()

void Retro::RlinkCrc16::AddData ( uint8_t  data)
inline

FIXME_docs.

Definition at line 38 of file RlinkCrc16.ipp.

References fCrc, and fCrc16Table.

Referenced by Retro::RlinkPacketBufRcv::GetWithCrc(), and Retro::RlinkPacketBufSnd::PutWithCrc().

◆ Crc()

uint16_t Retro::RlinkCrc16::Crc ( ) const
inline

FIXME_docs.

Definition at line 48 of file RlinkCrc16.ipp.

References fCrc.

Referenced by Retro::RlinkPacketBufRcv::CheckCrc(), Retro::RlinkPacketBuf::Dump(), and Retro::RlinkPacketBufSnd::PutCrc().

Member Data Documentation

◆ fCrc

uint16_t Retro::RlinkCrc16::fCrc
protected

current crc value

Definition at line 34 of file RlinkCrc16.hpp.

Referenced by AddData(), Clear(), and Crc().

◆ fCrc16Table

const uint16_t Retro::RlinkCrc16::fCrc16Table
staticprotected

FIXME_docs.

Definition at line 35 of file RlinkCrc16.hpp.

Referenced by AddData().


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