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

FIXME_docs. More...

#include <RlinkCommand.hpp>

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

Public Types

typedef std::unique_ptr< RlinkCommandExpectexp_uptr_t
 

Public Member Functions

 RlinkCommand ()
 Default constructor.
 
 RlinkCommand (const RlinkCommand &rhs)
 Copy constructor.
 
 ~RlinkCommand ()
 Destructor.
 
void CmdRreg (uint16_t addr)
 FIXME_docs.
 
void CmdRblk (uint16_t addr, size_t size)
 FIXME_docs.
 
void CmdRblk (uint16_t addr, uint16_t *pblock, size_t size)
 FIXME_docs.
 
void CmdWreg (uint16_t addr, uint16_t data)
 FIXME_docs.
 
void CmdWblk (uint16_t addr, const std::vector< uint16_t > &block)
 FIXME_docs.
 
void CmdWblk (uint16_t addr, std::vector< uint16_t > &&block)
 FIXME_docs.
 
void CmdWblk (uint16_t addr, const uint16_t *pblock, size_t size)
 FIXME_docs.
 
void CmdLabo ()
 FIXME_docs.
 
void CmdAttn ()
 FIXME_docs.
 
void CmdInit (uint16_t addr, uint16_t data)
 FIXME_docs.
 
void SetCommand (uint8_t cmd, uint16_t addr=0, uint16_t data=0)
 FIXME_docs.
 
void SetSeqNumber (uint8_t snum)
 FIXME_docs.
 
void SetAddress (uint16_t addr)
 FIXME_docs.
 
void SetData (uint16_t data)
 FIXME_docs.
 
void SetBlockWrite (const std::vector< uint16_t > &block)
 FIXME_docs.
 
void SetBlockWrite (std::vector< uint16_t > &&block)
 FIXME_docs.
 
void SetBlockRead (size_t size)
 FIXME_docs.
 
void SetBlockExt (uint16_t *pblock, size_t size)
 FIXME_docs.
 
void SetBlockDone (uint16_t dcnt)
 FIXME_docs.
 
void SetStatus (uint8_t stat)
 FIXME_docs.
 
void SetFlagBit (uint32_t mask)
 FIXME_docs.
 
void ClearFlagBit (uint32_t mask)
 FIXME_docs.
 
void SetRcvSize (size_t rsize)
 FIXME_docs.
 
void SetExpect (exp_uptr_t &&upexp)
 FIXME_docs.
 
RlinkCommandExpectEnsureExpect ()
 FIXME_docs.
 
void SetExpectStatus (uint8_t stat, uint8_t statmsk=0xff)
 FIXME_docs.
 
void SetExpectStatusDefault (uint8_t stat=0, uint8_t statmsk=0x0)
 FIXME_docs.
 
uint8_t Request () const
 FIXME_docs.
 
uint8_t Command () const
 FIXME_docs.
 
uint8_t SeqNumber () const
 FIXME_docs.
 
uint16_t Address () const
 FIXME_docs.
 
uint16_t Data () const
 FIXME_docs.
 
const std::vector< uint16_t > & Block () const
 FIXME_docs.
 
bool HasBlockExt () const
 FIXME_docs.
 
uint16_t * BlockPointer ()
 FIXME_docs.
 
const uint16_t * BlockPointer () const
 FIXME_docs.
 
size_t BlockSize () const
 FIXME_docs.
 
size_t BlockDone () const
 FIXME_docs.
 
bool BlockDoneAll () const
 FIXME_docs.
 
uint8_t Status () const
 FIXME_docs.
 
uint32_t Flags () const
 FIXME_docs.
 
bool TestFlagAny (uint32_t mask) const
 FIXME_docs.
 
bool TestFlagAll (uint32_t mask) const
 FIXME_docs.
 
size_t RcvSize () const
 FIXME_docs.
 
bool HasExpect () const
 FIXME_docs.
 
const RlinkCommandExpectExpect () const
 FIXME_docs.
 
uint8_t ExpectStatusValue () const
 FIXME_docs.
 
uint8_t ExpectStatusMask () const
 FIXME_docs.
 
bool ExpectStatusSet () const
 FIXME_docs.
 
bool StatusCheck () const
 FIXME_docs.
 
bool StatusIsChecked () const
 FIXME_docs.
 
void Print (std::ostream &os, const RlinkAddrMap *pamap=0, size_t abase=16, size_t dbase=16, size_t sbase=16) const
 FIXME_docs.
 
std::string CommandInfo () const
 FIXME_docs.
 
void Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const
 FIXME_docs.
 
RlinkCommandoperator= (const RlinkCommand &rhs)
 FIXME_docs.
 

Static Public Member Functions

static const char * CommandName (uint8_t cmd)
 FIXME_docs.
 
static const RflagNameFlagNames ()
 FIXME_docs.
 

Static Public Attributes

static const uint8_t kCmdRreg = 0
 command code read register
 
static const uint8_t kCmdRblk = 1
 command code read block
 
static const uint8_t kCmdWreg = 2
 command code write register
 
static const uint8_t kCmdWblk = 3
 command code write block
 
static const uint8_t kCmdLabo = 4
 command code list abort
 
static const uint8_t kCmdAttn = 5
 command code get attention
 
static const uint8_t kCmdInit = 6
 command code send initialize
 
static const uint32_t kFlagInit = 1u<<0
 cmd,addr,data setup
 
static const uint32_t kFlagSend = 1u<<1
 command send
 
static const uint32_t kFlagDone = 1u<<2
 command done
 
static const uint32_t kFlagLabo = 1u<<3
 command labo'ed
 
static const uint32_t kFlagPktBeg = 1u<<4
 command first in packet
 
static const uint32_t kFlagPktEnd = 1u<<5
 command last in packet
 
static const uint32_t kFlagErrNak = 1u<<8
 error: nak abort
 
static const uint32_t kFlagErrDec = 1u<<9
 error: decode error
 
static const uint32_t kFlagChkStat = 1u<<12
 stat expect check failed
 
static const uint32_t kFlagChkData = 1u<<13
 data expect check failed
 
static const uint32_t kFlagChkDone = 1u<<14
 done expect check failed
 
static const uint8_t kStat_M_Stat = 0xf0
 stat: external stat bits
 
static const uint8_t kStat_V_Stat = 4
 
static const uint8_t kStat_B_Stat = 0x0f
 
static const uint8_t kStat_M_Attn = kBBit03
 stat: attn flag set
 
static const uint8_t kStat_M_RbTout = kBBit02
 stat: rbtout flag set
 
static const uint8_t kStat_M_RbNak = kBBit01
 stat: rbnak flag set
 
static const uint8_t kStat_M_RbErr = kBBit00
 stat: rberr flag set
 
- Static Public Attributes inherited from Retro::Rbits
static const uint8_t kBBit00 = 1u<< 0
 
static const uint8_t kBBit01 = 1u<< 1
 
static const uint8_t kBBit02 = 1u<< 2
 
static const uint8_t kBBit03 = 1u<< 3
 
static const uint8_t kBBit04 = 1u<< 4
 
static const uint8_t kBBit05 = 1u<< 5
 
static const uint8_t kBBit06 = 1u<< 6
 
static const uint8_t kBBit07 = 1u<< 7
 
static const uint16_t kWBit00 = 1u<< 0
 
static const uint16_t kWBit01 = 1u<< 1
 
static const uint16_t kWBit02 = 1u<< 2
 
static const uint16_t kWBit03 = 1u<< 3
 
static const uint16_t kWBit04 = 1u<< 4
 
static const uint16_t kWBit05 = 1u<< 5
 
static const uint16_t kWBit06 = 1u<< 6
 
static const uint16_t kWBit07 = 1u<< 7
 
static const uint16_t kWBit08 = 1u<< 8
 
static const uint16_t kWBit09 = 1u<< 9
 
static const uint16_t kWBit10 = 1u<<10
 
static const uint16_t kWBit11 = 1u<<11
 
static const uint16_t kWBit12 = 1u<<12
 
static const uint16_t kWBit13 = 1u<<13
 
static const uint16_t kWBit14 = 1u<<14
 
static const uint16_t kWBit15 = 1u<<15
 
static const uint32_t kLBit00 = 1u<< 0
 
static const uint32_t kLBit01 = 1u<< 1
 
static const uint32_t kLBit02 = 1u<< 2
 
static const uint32_t kLBit03 = 1u<< 3
 
static const uint32_t kLBit04 = 1u<< 4
 
static const uint32_t kLBit05 = 1u<< 5
 
static const uint32_t kLBit06 = 1u<< 6
 
static const uint32_t kLBit07 = 1u<< 7
 
static const uint32_t kLBit08 = 1u<< 8
 
static const uint32_t kLBit09 = 1u<< 9
 
static const uint32_t kLBit10 = 1u<<10
 
static const uint32_t kLBit11 = 1u<<11
 
static const uint32_t kLBit12 = 1u<<12
 
static const uint32_t kLBit13 = 1u<<13
 
static const uint32_t kLBit14 = 1u<<14
 
static const uint32_t kLBit15 = 1u<<15
 
static const uint32_t kLBit16 = 1u<<16
 
static const uint32_t kLBit17 = 1u<<17
 
static const uint32_t kLBit18 = 1u<<18
 
static const uint32_t kLBit19 = 1u<<19
 
static const uint32_t kLBit20 = 1u<<20
 
static const uint32_t kLBit21 = 1u<<21
 
static const uint32_t kLBit22 = 1u<<22
 
static const uint32_t kLBit23 = 1u<<23
 
static const uint32_t kLBit24 = 1u<<24
 
static const uint32_t kLBit25 = 1u<<25
 
static const uint32_t kLBit26 = 1u<<26
 
static const uint32_t kLBit27 = 1u<<27
 
static const uint32_t kLBit28 = 1u<<28
 
static const uint32_t kLBit29 = 1u<<29
 
static const uint32_t kLBit30 = 1u<<30
 
static const uint32_t kLBit31 = 1u<<31
 

Protected Member Functions

void SetCmdSimple (uint8_t cmd, uint16_t addr, uint16_t data)
 

Protected Attributes

uint8_t fRequest
 rlink request (cmd+seqnum)
 
uint16_t fAddress
 rbus address
 
uint16_t fData
 data
 
std::vector< uint16_t > fBlock
 data vector for blk commands
 
uint16_t * fpBlockExt
 external data for blk commands
 
size_t fBlockExtSize
 transfer size if data external
 
size_t fBlockDone
 valid transfer count
 
uint8_t fStatus
 rlink command status
 
uint32_t fFlags
 state bits
 
size_t fRcvSize
 receive size for command
 
bool fExpectStatusSet
 stat chk set explicitely
 
uint8_t fExpectStatusVal
 status value
 
uint8_t fExpectStatusMsk
 status mask
 
exp_uptr_t fupExpect
 pointer to expect container
 

Detailed Description

FIXME_docs.

Definition at line 47 of file RlinkCommand.hpp.

Member Typedef Documentation

◆ exp_uptr_t

Definition at line 49 of file RlinkCommand.hpp.

Constructor & Destructor Documentation

◆ RlinkCommand() [1/2]

Retro::RlinkCommand::RlinkCommand ( )

Default constructor.

Definition at line 86 of file RlinkCommand.cpp.

◆ RlinkCommand() [2/2]

Retro::RlinkCommand::RlinkCommand ( const RlinkCommand rhs)

Copy constructor.

Definition at line 106 of file RlinkCommand.cpp.

◆ ~RlinkCommand()

Retro::RlinkCommand::~RlinkCommand ( )

Destructor.

Definition at line 126 of file RlinkCommand.cpp.

Member Function Documentation

◆ CmdRreg()

void Retro::RlinkCommand::CmdRreg ( uint16_t  addr)
inline

FIXME_docs.

Definition at line 27 of file RlinkCommand.ipp.

References kCmdRreg, and SetCommand().

◆ CmdRblk() [1/2]

void Retro::RlinkCommand::CmdRblk ( uint16_t  addr,
size_t  size 
)

FIXME_docs.

Definition at line 132 of file RlinkCommand.cpp.

References kCmdRblk, SetBlockRead(), and SetCommand().

◆ CmdRblk() [2/2]

void Retro::RlinkCommand::CmdRblk ( uint16_t  addr,
uint16_t *  pblock,
size_t  size 
)

FIXME_docs.

Definition at line 142 of file RlinkCommand.cpp.

References kCmdRblk, SetBlockExt(), and SetCommand().

◆ CmdWreg()

void Retro::RlinkCommand::CmdWreg ( uint16_t  addr,
uint16_t  data 
)
inline

FIXME_docs.

Definition at line 36 of file RlinkCommand.ipp.

References kCmdWreg, and SetCommand().

◆ CmdWblk() [1/3]

void Retro::RlinkCommand::CmdWblk ( uint16_t  addr,
const std::vector< uint16_t > &  block 
)

FIXME_docs.

Definition at line 152 of file RlinkCommand.cpp.

References kCmdWblk, SetBlockWrite(), and SetCommand().

◆ CmdWblk() [2/3]

void Retro::RlinkCommand::CmdWblk ( uint16_t  addr,
std::vector< uint16_t > &&  block 
)

FIXME_docs.

Definition at line 162 of file RlinkCommand.cpp.

References kCmdWblk, SetBlockWrite(), and SetCommand().

◆ CmdWblk() [3/3]

void Retro::RlinkCommand::CmdWblk ( uint16_t  addr,
const uint16_t *  pblock,
size_t  size 
)

FIXME_docs.

Definition at line 172 of file RlinkCommand.cpp.

References kCmdWblk, SetBlockExt(), and SetCommand().

◆ CmdLabo()

void Retro::RlinkCommand::CmdLabo ( )
inline

FIXME_docs.

Definition at line 45 of file RlinkCommand.ipp.

References kCmdLabo, and SetCommand().

◆ CmdAttn()

void Retro::RlinkCommand::CmdAttn ( )
inline

FIXME_docs.

Definition at line 54 of file RlinkCommand.ipp.

References kCmdAttn, and SetCommand().

◆ CmdInit()

void Retro::RlinkCommand::CmdInit ( uint16_t  addr,
uint16_t  data 
)
inline

FIXME_docs.

Definition at line 63 of file RlinkCommand.ipp.

References kCmdInit, and SetCommand().

◆ SetCommand()

void Retro::RlinkCommand::SetCommand ( uint8_t  cmd,
uint16_t  addr = 0,
uint16_t  data = 0 
)

◆ SetSeqNumber()

void Retro::RlinkCommand::SetSeqNumber ( uint8_t  snum)
inline

FIXME_docs.

Definition at line 72 of file RlinkCommand.ipp.

References fRequest.

Referenced by Retro::RlinkConnect::EncodeRequest().

◆ SetAddress()

void Retro::RlinkCommand::SetAddress ( uint16_t  addr)

FIXME_docs.

Definition at line 202 of file RlinkCommand.cpp.

References fAddress.

◆ SetData()

void Retro::RlinkCommand::SetData ( uint16_t  data)
inline

FIXME_docs.

Definition at line 81 of file RlinkCommand.ipp.

References fData.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Retro::Rw11Cpu::ModLalh().

◆ SetBlockWrite() [1/2]

void Retro::RlinkCommand::SetBlockWrite ( const std::vector< uint16_t > &  block)

FIXME_docs.

Definition at line 211 of file RlinkCommand.cpp.

References fBlock, fBlockDone, fBlockExtSize, and fpBlockExt.

Referenced by CmdWblk().

◆ SetBlockWrite() [2/2]

void Retro::RlinkCommand::SetBlockWrite ( std::vector< uint16_t > &&  block)

FIXME_docs.

Definition at line 226 of file RlinkCommand.cpp.

References fBlock, fBlockDone, fBlockExtSize, and fpBlockExt.

◆ SetBlockRead()

void Retro::RlinkCommand::SetBlockRead ( size_t  size)

FIXME_docs.

Definition at line 241 of file RlinkCommand.cpp.

References fBlock, fBlockDone, fBlockExtSize, and fpBlockExt.

Referenced by CmdRblk().

◆ SetBlockExt()

void Retro::RlinkCommand::SetBlockExt ( uint16_t *  pblock,
size_t  size 
)

FIXME_docs.

Definition at line 257 of file RlinkCommand.cpp.

References fBlockDone, fBlockExtSize, and fpBlockExt.

Referenced by CmdRblk(), and CmdWblk().

◆ SetBlockDone()

void Retro::RlinkCommand::SetBlockDone ( uint16_t  dcnt)
inline

FIXME_docs.

Definition at line 90 of file RlinkCommand.ipp.

References fBlockDone.

Referenced by Retro::RlinkConnect::DecodeResponse().

◆ SetStatus()

void Retro::RlinkCommand::SetStatus ( uint8_t  stat)
inline

FIXME_docs.

Definition at line 99 of file RlinkCommand.ipp.

References fStatus.

Referenced by Retro::RlinkConnect::DecodeResponse().

◆ SetFlagBit()

void Retro::RlinkCommand::SetFlagBit ( uint32_t  mask)
inline

FIXME_docs.

Definition at line 108 of file RlinkCommand.ipp.

References fFlags.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Retro::RlinkConnect::EncodeRequest().

◆ ClearFlagBit()

void Retro::RlinkCommand::ClearFlagBit ( uint32_t  mask)
inline

FIXME_docs.

Definition at line 117 of file RlinkCommand.ipp.

References fFlags.

Referenced by Retro::RlinkConnect::EncodeRequest(), and Retro::RlinkConnect::Exec().

◆ SetRcvSize()

void Retro::RlinkCommand::SetRcvSize ( size_t  rsize)
inline

FIXME_docs.

Definition at line 126 of file RlinkCommand.ipp.

References fRcvSize.

Referenced by Retro::RlinkConnect::EncodeRequest().

◆ SetExpect()

void Retro::RlinkCommand::SetExpect ( exp_uptr_t &&  upexp)

FIXME_docs.

Definition at line 274 of file RlinkCommand.cpp.

References fupExpect.

◆ EnsureExpect()

RlinkCommandExpect & Retro::RlinkCommand::EnsureExpect ( )
inline

◆ SetExpectStatus()

void Retro::RlinkCommand::SetExpectStatus ( uint8_t  stat,
uint8_t  statmsk = 0xff 
)
inline

FIXME_docs.

Definition at line 144 of file RlinkCommand.ipp.

References fExpectStatusMsk, fExpectStatusSet, and fExpectStatusVal.

◆ SetExpectStatusDefault()

void Retro::RlinkCommand::SetExpectStatusDefault ( uint8_t  stat = 0,
uint8_t  statmsk = 0x0 
)
inline

FIXME_docs.

Definition at line 155 of file RlinkCommand.ipp.

References fExpectStatusMsk, fExpectStatusSet, and fExpectStatusVal.

Referenced by Retro::RlinkConnect::Exec().

◆ Request()

uint8_t Retro::RlinkCommand::Request ( ) const
inline

◆ Command()

◆ SeqNumber()

uint8_t Retro::RlinkCommand::SeqNumber ( ) const
inline

FIXME_docs.

Definition at line 182 of file RlinkCommand.ipp.

References fRequest.

Referenced by Dump().

◆ Address()

uint16_t Retro::RlinkCommand::Address ( ) const
inline

FIXME_docs.

Definition at line 190 of file RlinkCommand.ipp.

References fAddress.

Referenced by Retro::RlinkConnect::EncodeRequest(), and Retro::Rw11Cpu::ModLalh().

◆ Data()

uint16_t Retro::RlinkCommand::Data ( ) const
inline

◆ Block()

const std::vector< uint16_t > & Retro::RlinkCommand::Block ( ) const
inline

FIXME_docs.

Definition at line 206 of file RlinkCommand.ipp.

References fBlock.

Referenced by Retro::RtclRw11Cpu::M_cp(), and Retro::RtclRlinkConnect::M_exec().

◆ HasBlockExt()

bool Retro::RlinkCommand::HasBlockExt ( ) const
inline

FIXME_docs.

Definition at line 214 of file RlinkCommand.ipp.

References fpBlockExt.

Referenced by BlockPointer(), and BlockSize().

◆ BlockPointer() [1/2]

◆ BlockPointer() [2/2]

const uint16_t * Retro::RlinkCommand::BlockPointer ( ) const
inline

FIXME_docs.

Definition at line 230 of file RlinkCommand.ipp.

References fBlock, fpBlockExt, and HasBlockExt().

◆ BlockSize()

◆ BlockDone()

◆ BlockDoneAll()

bool Retro::RlinkCommand::BlockDoneAll ( ) const
inline

FIXME_docs.

Definition at line 254 of file RlinkCommand.ipp.

References BlockDone(), and BlockSize().

◆ Status()

uint8_t Retro::RlinkCommand::Status ( ) const
inline

FIXME_docs.

Definition at line 262 of file RlinkCommand.ipp.

References fStatus.

Referenced by Retro::RtclRw11Cpu::M_cp(), and Retro::RtclRlinkConnect::M_exec().

◆ Flags()

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

FIXME_docs.

Definition at line 270 of file RlinkCommand.ipp.

References fFlags.

Referenced by Retro::RtclRlinkConnect::M_exec().

◆ TestFlagAny()

bool Retro::RlinkCommand::TestFlagAny ( uint32_t  mask) const
inline

FIXME_docs.

Definition at line 278 of file RlinkCommand.ipp.

References fFlags.

Referenced by CommandInfo(), Retro::RlinkConnect::Exec(), and Print().

◆ TestFlagAll()

bool Retro::RlinkCommand::TestFlagAll ( uint32_t  mask) const
inline

FIXME_docs.

Definition at line 286 of file RlinkCommand.ipp.

References fFlags.

◆ RcvSize()

size_t Retro::RlinkCommand::RcvSize ( ) const
inline

FIXME_docs.

Definition at line 294 of file RlinkCommand.ipp.

References fRcvSize.

Referenced by Retro::RlinkConnect::DecodeResponse().

◆ HasExpect()

bool Retro::RlinkCommand::HasExpect ( ) const
inline

FIXME_docs.

Definition at line 302 of file RlinkCommand.ipp.

References fupExpect.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Print().

◆ Expect()

const RlinkCommandExpect & Retro::RlinkCommand::Expect ( ) const
inline

FIXME_docs.

Definition at line 310 of file RlinkCommand.ipp.

References fupExpect.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Print().

◆ ExpectStatusValue()

uint8_t Retro::RlinkCommand::ExpectStatusValue ( ) const
inline

FIXME_docs.

Definition at line 318 of file RlinkCommand.ipp.

References fExpectStatusVal.

◆ ExpectStatusMask()

uint8_t Retro::RlinkCommand::ExpectStatusMask ( ) const
inline

FIXME_docs.

Definition at line 326 of file RlinkCommand.ipp.

References fExpectStatusMsk.

◆ ExpectStatusSet()

bool Retro::RlinkCommand::ExpectStatusSet ( ) const
inline

FIXME_docs.

Definition at line 334 of file RlinkCommand.ipp.

References fExpectStatusSet.

Referenced by Retro::RlinkConnect::DecodeResponse(), Retro::RlinkConnect::Exec(), and Print().

◆ StatusCheck()

bool Retro::RlinkCommand::StatusCheck ( ) const
inline

FIXME_docs.

Definition at line 342 of file RlinkCommand.ipp.

References fExpectStatusMsk, fExpectStatusVal, and fStatus.

Referenced by Retro::RlinkConnect::DecodeResponse().

◆ StatusIsChecked()

bool Retro::RlinkCommand::StatusIsChecked ( ) const
inline

FIXME_docs.

Definition at line 350 of file RlinkCommand.ipp.

References fExpectStatusMsk.

Referenced by Retro::RlinkConnect::DecodeResponse(), and Print().

◆ Print()

◆ CommandInfo()

◆ Dump()

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

◆ CommandName()

const char * Retro::RlinkCommand::CommandName ( uint8_t  cmd)
static

FIXME_docs.

Definition at line 560 of file RlinkCommand.cpp.

Referenced by CommandInfo(), Dump(), Print(), and Retro::RtclRlinkConnect::RtclRlinkConnect().

◆ FlagNames()

const Retro::RflagName * Retro::RlinkCommand::FlagNames ( )
static

FIXME_docs.

Definition at line 571 of file RlinkCommand.cpp.

References kFlagChkData, kFlagChkDone, kFlagChkStat, kFlagDone, kFlagErrDec, kFlagErrNak, kFlagInit, kFlagLabo, kFlagPktBeg, kFlagPktEnd, and kFlagSend.

Referenced by Dump(), and Print().

◆ operator=()

RlinkCommand & Retro::RlinkCommand::operator= ( const RlinkCommand rhs)

◆ SetCmdSimple()

void Retro::RlinkCommand::SetCmdSimple ( uint8_t  cmd,
uint16_t  addr,
uint16_t  data 
)
protected

Member Data Documentation

◆ kCmdRreg

const uint8_t Retro::RlinkCommand::kCmdRreg = 0
static

◆ kCmdRblk

const uint8_t Retro::RlinkCommand::kCmdRblk = 1
static

◆ kCmdWreg

const uint8_t Retro::RlinkCommand::kCmdWreg = 2
static

◆ kCmdWblk

const uint8_t Retro::RlinkCommand::kCmdWblk = 3
static

◆ kCmdLabo

◆ kCmdAttn

◆ kCmdInit

const uint8_t Retro::RlinkCommand::kCmdInit = 6
static

◆ kFlagInit

const uint32_t Retro::RlinkCommand::kFlagInit = 1u<<0
static

cmd,addr,data setup

Definition at line 132 of file RlinkCommand.hpp.

Referenced by Retro::RlinkConnect::Exec(), FlagNames(), and SetCommand().

◆ kFlagSend

const uint32_t Retro::RlinkCommand::kFlagSend = 1u<<1
static

◆ kFlagDone

const uint32_t Retro::RlinkCommand::kFlagDone = 1u<<2
static

◆ kFlagLabo

const uint32_t Retro::RlinkCommand::kFlagLabo = 1u<<3
static

◆ kFlagPktBeg

const uint32_t Retro::RlinkCommand::kFlagPktBeg = 1u<<4
static

command first in packet

Definition at line 137 of file RlinkCommand.hpp.

Referenced by CommandInfo(), Retro::RlinkConnect::EncodeRequest(), Retro::RlinkConnect::Exec(), FlagNames(), and Print().

◆ kFlagPktEnd

const uint32_t Retro::RlinkCommand::kFlagPktEnd = 1u<<5
static

command last in packet

Definition at line 138 of file RlinkCommand.hpp.

Referenced by Retro::RlinkConnect::EncodeRequest(), Retro::RlinkConnect::Exec(), and FlagNames().

◆ kFlagErrNak

const uint32_t Retro::RlinkCommand::kFlagErrNak = 1u<<8
static

error: nak abort

Definition at line 140 of file RlinkCommand.hpp.

Referenced by Retro::RlinkConnect::DecodeResponse(), Retro::RlinkConnect::Exec(), FlagNames(), and Print().

◆ kFlagErrDec

const uint32_t Retro::RlinkCommand::kFlagErrDec = 1u<<9
static

error: decode error

Definition at line 141 of file RlinkCommand.hpp.

Referenced by Retro::RlinkConnect::DecodeResponse(), Retro::RlinkConnect::Exec(), FlagNames(), and Print().

◆ kFlagChkStat

const uint32_t Retro::RlinkCommand::kFlagChkStat = 1u<<12
static

stat expect check failed

Definition at line 143 of file RlinkCommand.hpp.

Referenced by CommandInfo(), Retro::RlinkConnect::DecodeResponse(), Retro::RlinkConnect::Exec(), FlagNames(), and Print().

◆ kFlagChkData

const uint32_t Retro::RlinkCommand::kFlagChkData = 1u<<13
static

data expect check failed

Definition at line 144 of file RlinkCommand.hpp.

Referenced by CommandInfo(), Retro::RlinkConnect::DecodeResponse(), Retro::RlinkConnect::Exec(), FlagNames(), and Print().

◆ kFlagChkDone

const uint32_t Retro::RlinkCommand::kFlagChkDone = 1u<<14
static

done expect check failed

Definition at line 145 of file RlinkCommand.hpp.

Referenced by CommandInfo(), Retro::RlinkConnect::DecodeResponse(), Retro::RlinkConnect::Exec(), FlagNames(), and Print().

◆ kStat_M_Stat

const uint8_t Retro::RlinkCommand::kStat_M_Stat = 0xf0
static

stat: external stat bits

Definition at line 147 of file RlinkCommand.hpp.

◆ kStat_V_Stat

const uint8_t Retro::RlinkCommand::kStat_V_Stat = 4
static

Definition at line 148 of file RlinkCommand.hpp.

◆ kStat_B_Stat

const uint8_t Retro::RlinkCommand::kStat_B_Stat = 0x0f
static

Definition at line 149 of file RlinkCommand.hpp.

◆ kStat_M_Attn

const uint8_t Retro::RlinkCommand::kStat_M_Attn = kBBit03
static

stat: attn flag set

Definition at line 150 of file RlinkCommand.hpp.

◆ kStat_M_RbTout

◆ kStat_M_RbNak

◆ kStat_M_RbErr

◆ fRequest

uint8_t Retro::RlinkCommand::fRequest
protected

rlink request (cmd+seqnum)

Definition at line 159 of file RlinkCommand.hpp.

Referenced by Command(), Dump(), operator=(), Request(), SeqNumber(), SetCommand(), and SetSeqNumber().

◆ fAddress

uint16_t Retro::RlinkCommand::fAddress
protected

rbus address

Definition at line 160 of file RlinkCommand.hpp.

Referenced by Address(), CommandInfo(), Dump(), operator=(), Print(), SetAddress(), and SetCommand().

◆ fData

uint16_t Retro::RlinkCommand::fData
protected

data

Definition at line 161 of file RlinkCommand.hpp.

Referenced by CommandInfo(), Data(), Dump(), operator=(), Print(), SetCommand(), and SetData().

◆ fBlock

std::vector<uint16_t> Retro::RlinkCommand::fBlock
protected

data vector for blk commands

Definition at line 162 of file RlinkCommand.hpp.

Referenced by Block(), BlockPointer(), BlockSize(), Dump(), operator=(), SetBlockRead(), and SetBlockWrite().

◆ fpBlockExt

uint16_t* Retro::RlinkCommand::fpBlockExt
protected

external data for blk commands

Definition at line 163 of file RlinkCommand.hpp.

Referenced by BlockPointer(), Dump(), HasBlockExt(), operator=(), SetBlockExt(), SetBlockRead(), SetBlockWrite(), and SetCommand().

◆ fBlockExtSize

size_t Retro::RlinkCommand::fBlockExtSize
protected

transfer size if data external

Definition at line 164 of file RlinkCommand.hpp.

Referenced by BlockSize(), Dump(), operator=(), SetBlockExt(), SetBlockRead(), SetBlockWrite(), and SetCommand().

◆ fBlockDone

size_t Retro::RlinkCommand::fBlockDone
protected

valid transfer count

Definition at line 165 of file RlinkCommand.hpp.

Referenced by BlockDone(), Dump(), operator=(), SetBlockDone(), SetBlockExt(), SetBlockRead(), SetBlockWrite(), and SetCommand().

◆ fStatus

uint8_t Retro::RlinkCommand::fStatus
protected

rlink command status

Definition at line 166 of file RlinkCommand.hpp.

Referenced by CommandInfo(), Dump(), operator=(), Print(), SetCommand(), SetStatus(), Status(), and StatusCheck().

◆ fFlags

uint32_t Retro::RlinkCommand::fFlags
protected

state bits

Definition at line 167 of file RlinkCommand.hpp.

Referenced by ClearFlagBit(), Dump(), Flags(), operator=(), Print(), SetCommand(), SetFlagBit(), TestFlagAll(), and TestFlagAny().

◆ fRcvSize

size_t Retro::RlinkCommand::fRcvSize
protected

receive size for command

Definition at line 168 of file RlinkCommand.hpp.

Referenced by Dump(), operator=(), RcvSize(), SetCommand(), and SetRcvSize().

◆ fExpectStatusSet

bool Retro::RlinkCommand::fExpectStatusSet
protected

stat chk set explicitely

Definition at line 169 of file RlinkCommand.hpp.

Referenced by Dump(), ExpectStatusSet(), operator=(), SetExpectStatus(), and SetExpectStatusDefault().

◆ fExpectStatusVal

uint8_t Retro::RlinkCommand::fExpectStatusVal
protected

◆ fExpectStatusMsk

uint8_t Retro::RlinkCommand::fExpectStatusMsk
protected

◆ fupExpect

exp_uptr_t Retro::RlinkCommand::fupExpect
protected

pointer to expect container

Definition at line 172 of file RlinkCommand.hpp.

Referenced by Dump(), EnsureExpect(), Expect(), HasExpect(), operator=(), SetCommand(), and SetExpect().


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