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

FIXME_docs. More...

#include <RlinkPacketBuf.hpp>

Inheritance diagram for Retro::RlinkPacketBuf:
[legend]
Collaboration diagram for Retro::RlinkPacketBuf:
[legend]

Public Member Functions

 RlinkPacketBuf ()
 Default constructor.
 
 ~RlinkPacketBuf ()
 Destructor.
 
 RlinkPacketBuf (const RlinkPacketBuf &)=delete
 
RlinkPacketBufoperator= (const RlinkPacketBuf &)=delete
 
size_t PktSize () const
 FIXME_docs.
 
uint32_t Flags () const
 FIXME_docs.
 
bool TestFlag (uint32_t mask) const
 FIXME_docs.
 
RstatsStats ()
 FIXME_docs.
 
void Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const
 FIXME_docs.
 

Static Public Attributes

static const uint32_t kFlagSopSeen = 1<<0
 sop was seen
 
static const uint32_t kFlagEopSeen = 1<<1
 eop was seen
 
static const uint32_t kFlagNakSeen = 1<<2
 nak was seen
 
static const uint32_t kFlagAttnSeen = 1<<3
 attn was seen
 
static const uint32_t kFlagErrTout = 1<<16
 err: timeout on read
 
static const uint32_t kFlagErrIO = 1<<17
 err: IO error on read
 
static const uint32_t kFlagErrFrame = 1<<18
 err: frame error
 
static const uint32_t kFlagErrClobber = 1<<19
 err: clobbered esc
 
static const uint8_t kSymEsc = 0xCA
 VHDL def escape 1100 1010.
 
static const uint8_t kSymFill = 0xD5
 VHDL def fill 1101 0101.
 
static const uint8_t kSymXon = 0x11
 VHDL def xon 0001 0001.
 
static const uint8_t kSymXoff = 0x13
 VHDL def xoff 0001 0011.
 
static const uint8_t kSymEdPref = 0x40
 VHDL def ed_pref 0100 0000.
 
static const uint8_t kEcSop = 0x00
 VHDL def ec_sop 000.
 
static const uint8_t kEcEop = 0x01
 VHDL def ec_eop 001.
 
static const uint8_t kEcNak = 0x02
 VHDL def ec_nak 010.
 
static const uint8_t kEcAttn = 0x03
 VHDL def ec_attn 011.
 
static const uint8_t kEcXon = 0x04
 VHDL def ec_xon 100.
 
static const uint8_t kEcXoff = 0x05
 VHDL def ec_xoff 101.
 
static const uint8_t kEcFill = 0x06
 VHDL def ec_fill 110.
 
static const uint8_t kEcEsc = 0x07
 VHDL def ec_esc 111.
 
static const uint8_t kEcClobber = 0xff
 invalid Ecode
 
static const uint8_t kNcCcrc = 0x00
 VHDL def nak_ccrc 000.
 
static const uint8_t kNcDcrc = 0x01
 VHDL def nak_dcrc 001.
 
static const uint8_t kNcFrame = 0x02
 VHDL def nak_frame 010.
 
static const uint8_t kNcUnused = 0x03
 VHDL def nak_unused 011.
 
static const uint8_t kNcCmd = 0x04
 VHDL def nak_cmd 100.
 
static const uint8_t kNcCnt = 0x05
 VHDL def nak_cnt 101.
 
static const uint8_t kNcRtOvlf = 0x06
 VHDL def nak_rtovfl 110.
 
static const uint8_t kNcRtWblk = 0x07
 VHDL def nak_rtwblk 111.
 
static const uint8_t kNcInval = 0x08
 invalid NAK
 

Protected Member Functions

void SetFlagBit (uint32_t mask)
 FIXME_docs.
 
void ClearFlagBit (uint32_t mask)
 FIXME_docs.
 

Protected Attributes

std::vector< uint8_t > fPktBuf
 packet buffer
 
RlinkCrc16 fCrc
 crc accumulator
 
uint32_t fFlags
 request/response flags
 
Rstats fStats
 statistics
 

Detailed Description

FIXME_docs.

Definition at line 36 of file RlinkPacketBuf.hpp.

Constructor & Destructor Documentation

◆ RlinkPacketBuf() [1/2]

Retro::RlinkPacketBuf::RlinkPacketBuf ( )

Default constructor.

Definition at line 77 of file RlinkPacketBuf.cpp.

◆ ~RlinkPacketBuf()

Retro::RlinkPacketBuf::~RlinkPacketBuf ( )

Destructor.

Definition at line 87 of file RlinkPacketBuf.cpp.

◆ RlinkPacketBuf() [2/2]

Retro::RlinkPacketBuf::RlinkPacketBuf ( const RlinkPacketBuf )
delete

Member Function Documentation

◆ operator=()

RlinkPacketBuf & Retro::RlinkPacketBuf::operator= ( const RlinkPacketBuf )
delete

◆ PktSize()

size_t Retro::RlinkPacketBuf::PktSize ( ) const
inline

FIXME_docs.

Definition at line 23 of file RlinkPacketBuf.ipp.

References fPktBuf.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill(), and Retro::RlinkPacketBufSnd::SndPacket().

◆ Flags()

uint32_t Retro::RlinkPacketBuf::Flags ( ) const
inline

FIXME_docs.

Definition at line 40 of file RlinkPacketBuf.ipp.

References fFlags.

◆ TestFlag()

bool Retro::RlinkPacketBuf::TestFlag ( uint32_t  mask) const
inline

FIXME_docs.

Definition at line 48 of file RlinkPacketBuf.ipp.

References fFlags.

Referenced by Retro::RlinkPacketBufRcv::PacketState(), and Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ Stats()

Rstats & Retro::RlinkPacketBuf::Stats ( )
inline

FIXME_docs.

Definition at line 56 of file RlinkPacketBuf.ipp.

References fStats.

Referenced by Retro::RlinkConnect::RcvStats(), and Retro::RlinkConnect::SndStats().

◆ Dump()

void Retro::RlinkPacketBuf::Dump ( std::ostream &  os,
int  ind = 0,
const char *  text = 0,
int  detail = 0 
) const

◆ SetFlagBit()

void Retro::RlinkPacketBuf::SetFlagBit ( uint32_t  mask)
inlineprotected

◆ ClearFlagBit()

void Retro::RlinkPacketBuf::ClearFlagBit ( uint32_t  mask)
inlineprotected

FIXME_docs.

Definition at line 64 of file RlinkPacketBuf.ipp.

References fFlags.

Member Data Documentation

◆ kFlagSopSeen

const uint32_t Retro::RlinkPacketBuf::kFlagSopSeen = 1<<0
static

◆ kFlagEopSeen

const uint32_t Retro::RlinkPacketBuf::kFlagEopSeen = 1<<1
static

eop was seen

Definition at line 56 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kFlagNakSeen

const uint32_t Retro::RlinkPacketBuf::kFlagNakSeen = 1<<2
static

nak was seen

Definition at line 57 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kFlagAttnSeen

const uint32_t Retro::RlinkPacketBuf::kFlagAttnSeen = 1<<3
static

◆ kFlagErrTout

const uint32_t Retro::RlinkPacketBuf::kFlagErrTout = 1<<16
static

err: timeout on read

Definition at line 59 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ReadData().

◆ kFlagErrIO

const uint32_t Retro::RlinkPacketBuf::kFlagErrIO = 1<<17
static

err: IO error on read

Definition at line 60 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ReadData().

◆ kFlagErrFrame

const uint32_t Retro::RlinkPacketBuf::kFlagErrFrame = 1<<18
static

err: frame error

Definition at line 61 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kFlagErrClobber

const uint32_t Retro::RlinkPacketBuf::kFlagErrClobber = 1<<19
static

err: clobbered esc

Definition at line 62 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kSymEsc

◆ kSymFill

const uint8_t Retro::RlinkPacketBuf::kSymFill = 0xD5
static

VHDL def fill 1101 0101.

Definition at line 66 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kSymXon

const uint8_t Retro::RlinkPacketBuf::kSymXon = 0x11
static

VHDL def xon 0001 0001.

Definition at line 67 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill(), and Retro::RlinkPacketBufSnd::SndPacket().

◆ kSymXoff

const uint8_t Retro::RlinkPacketBuf::kSymXoff = 0x13
static

VHDL def xoff 0001 0011.

Definition at line 68 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill(), and Retro::RlinkPacketBufSnd::SndPacket().

◆ kSymEdPref

const uint8_t Retro::RlinkPacketBuf::kSymEdPref = 0x40
static

VHDL def ed_pref 0100 0000.

Definition at line 69 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::GetEcode(), and Retro::RlinkPacketBufSnd::PutRawEsc().

◆ kEcSop

const uint8_t Retro::RlinkPacketBuf::kEcSop = 0x00
static

◆ kEcEop

const uint8_t Retro::RlinkPacketBuf::kEcEop = 0x01
static

◆ kEcNak

const uint8_t Retro::RlinkPacketBuf::kEcNak = 0x02
static

◆ kEcAttn

const uint8_t Retro::RlinkPacketBuf::kEcAttn = 0x03
static

◆ kEcXon

const uint8_t Retro::RlinkPacketBuf::kEcXon = 0x04
static

VHDL def ec_xon 100.

Definition at line 74 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill(), and Retro::RlinkPacketBufSnd::SndPacket().

◆ kEcXoff

const uint8_t Retro::RlinkPacketBuf::kEcXoff = 0x05
static

VHDL def ec_xoff 101.

Definition at line 75 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill(), and Retro::RlinkPacketBufSnd::SndPacket().

◆ kEcFill

const uint8_t Retro::RlinkPacketBuf::kEcFill = 0x06
static

VHDL def ec_fill 110.

Definition at line 76 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kEcEsc

const uint8_t Retro::RlinkPacketBuf::kEcEsc = 0x07
static

VHDL def ec_esc 111.

Definition at line 77 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::ProcessDataFill(), and Retro::RlinkPacketBufSnd::SndPacket().

◆ kEcClobber

const uint8_t Retro::RlinkPacketBuf::kEcClobber = 0xff
static

invalid Ecode

Definition at line 78 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkPacketBufRcv::GetEcode(), and Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kNcCcrc

const uint8_t Retro::RlinkPacketBuf::kNcCcrc = 0x00
static

VHDL def nak_ccrc 000.

Definition at line 79 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kNcDcrc

const uint8_t Retro::RlinkPacketBuf::kNcDcrc = 0x01
static

VHDL def nak_dcrc 001.

Definition at line 80 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kNcFrame

const uint8_t Retro::RlinkPacketBuf::kNcFrame = 0x02
static

VHDL def nak_frame 010.

Definition at line 81 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kNcUnused

const uint8_t Retro::RlinkPacketBuf::kNcUnused = 0x03
static

VHDL def nak_unused 011.

Definition at line 82 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kNcCmd

const uint8_t Retro::RlinkPacketBuf::kNcCmd = 0x04
static

VHDL def nak_cmd 100.

Definition at line 83 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kNcCnt

const uint8_t Retro::RlinkPacketBuf::kNcCnt = 0x05
static

VHDL def nak_cnt 101.

Definition at line 84 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kNcRtOvlf

const uint8_t Retro::RlinkPacketBuf::kNcRtOvlf = 0x06
static

VHDL def nak_rtovfl 110.

Definition at line 85 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kNcRtWblk

const uint8_t Retro::RlinkPacketBuf::kNcRtWblk = 0x07
static

VHDL def nak_rtwblk 111.

Definition at line 86 of file RlinkPacketBuf.hpp.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Retro::RlinkPacketBufRcv::ProcessDataFill().

◆ kNcInval

const uint8_t Retro::RlinkPacketBuf::kNcInval = 0x08
static

◆ fPktBuf

◆ fCrc

◆ fFlags

uint32_t Retro::RlinkPacketBuf::fFlags
protected

◆ fStats


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