97 os << bl << (text?text:
"--") <<
"RlinkPacketBuf @ " <<
this << endl;
103 size_t ncol = max(1, (80-ind-4-6)/(2+1));
104 for (
size_t i=0; i<
fPktBuf.size(); i++) {
105 if (i%ncol == 0) os <<
"\n" << bl <<
" " <<
RosPrintf(i,
"d",4) <<
": ";
uint16_t Crc() const
FIXME_docs.
static const uint8_t kEcXon
VHDL def ec_xon 100.
static const uint8_t kNcCnt
VHDL def nak_cnt 101.
RlinkPacketBuf()
Default constructor.
static const uint8_t kNcRtWblk
VHDL def nak_rtwblk 111.
static const uint8_t kNcUnused
VHDL def nak_unused 011.
static const uint8_t kNcFrame
VHDL def nak_frame 010.
static const uint32_t kFlagErrTout
err: timeout on read
static const uint8_t kSymEsc
VHDL def escape 1100 1010.
static const uint8_t kEcClobber
invalid Ecode
~RlinkPacketBuf()
Destructor.
static const uint8_t kEcEsc
VHDL def ec_esc 111.
static const uint8_t kNcCmd
VHDL def nak_cmd 100.
static const uint32_t kFlagSopSeen
sop was seen
static const uint8_t kSymFill
VHDL def fill 1101 0101.
static const uint8_t kNcRtOvlf
VHDL def nak_rtovfl 110.
RlinkCrc16 fCrc
crc accumulator
static const uint8_t kEcSop
VHDL def ec_sop 000.
static const uint32_t kFlagEopSeen
eop was seen
static const uint8_t kNcDcrc
VHDL def nak_dcrc 001.
static const uint32_t kFlagErrFrame
err: frame error
static const uint8_t kEcFill
VHDL def ec_fill 110.
static const uint8_t kNcInval
invalid NAK
std::vector< uint8_t > fPktBuf
packet buffer
static const uint32_t kFlagErrClobber
err: clobbered esc
static const uint32_t kFlagNakSeen
nak was seen
static const uint8_t kEcNak
VHDL def ec_nak 010.
static const uint8_t kEcAttn
VHDL def ec_attn 011.
static const uint8_t kSymEdPref
VHDL def ed_pref 0100 0000.
uint32_t fFlags
request/response flags
static const uint8_t kEcXoff
VHDL def ec_xoff 101.
static const uint8_t kSymXon
VHDL def xon 0001 0001.
static const uint8_t kEcEop
VHDL def ec_eop 001.
static const uint8_t kSymXoff
VHDL def xoff 0001 0011.
static const uint8_t kNcCcrc
VHDL def nak_ccrc 000.
void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
static const uint32_t kFlagErrIO
err: IO error on read
static const uint32_t kFlagAttnSeen
attn was seen
I/O appicator to generate fill characters.
void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
RosPrintfS< bool > RosPrintf(bool value, const char *form=0, int width=0, int prec=0)
Creates a print object for the formatted output of a bool value.
Declaration of class ReventLoop.