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

FIXME_docs. More...

#include <RlinkCommandList.hpp>

Collaboration diagram for Retro::RlinkCommandList:
[legend]

Public Types

typedef std::unique_ptr< RlinkCommandcmd_uptr_t
 
typedef std::unique_ptr< RlinkCommandExpectexp_uptr_t
 

Public Member Functions

 RlinkCommandList ()
 Default constructor.
 
 RlinkCommandList (const RlinkCommandList &rhs)
 Copy constructor.
 
 ~RlinkCommandList ()
 Destructor.
 
size_t AddCommand (cmd_uptr_t &&upcmd)
 FIXME_docs.
 
size_t AddCommand (const RlinkCommand &cmd)
 FIXME_docs.
 
size_t AddCommand (const RlinkCommandList &clist)
 FIXME_docs.
 
size_t AddRreg (uint16_t addr)
 FIXME_docs.
 
size_t AddRblk (uint16_t addr, size_t size)
 FIXME_docs.
 
size_t AddRblk (uint16_t addr, uint16_t *block, size_t size)
 FIXME_docs.
 
size_t AddWreg (uint16_t addr, uint16_t data)
 FIXME_docs.
 
size_t AddWblk (uint16_t addr, const std::vector< uint16_t > &block)
 FIXME_docs.
 
size_t AddWblk (uint16_t addr, std::vector< uint16_t > &&block)
 FIXME_docs.
 
size_t AddWblk (uint16_t addr, const uint16_t *block, size_t size)
 FIXME_docs.
 
size_t AddLabo ()
 FIXME_docs.
 
size_t AddAttn ()
 FIXME_docs.
 
size_t AddInit (uint16_t addr, uint16_t data)
 FIXME_docs.
 
void SetLastExpectStatus (uint8_t stat, uint8_t statmsk=0xff)
 FIXME_docs.
 
void SetLastExpectData (uint16_t data, uint16_t datamsk=0xffff)
 FIXME_docs.
 
void SetLastExpectDone (uint16_t done)
 FIXME_docs.
 
void SetLastExpectBlock (const std::vector< uint16_t > &block)
 FIXME_docs.
 
void SetLastExpectBlock (std::vector< uint16_t > &&block)
 FIXME_docs.
 
void SetLastExpectBlock (const std::vector< uint16_t > &block, const std::vector< uint16_t > &blockmsk)
 FIXME_docs.
 
void SetLastExpectBlock (std::vector< uint16_t > &&block, std::vector< uint16_t > &&blockmsk)
 FIXME_docs.
 
void SetLastExpect (exp_uptr_t &&upexp)
 FIXME_docs.
 
void ClearLaboIndex ()
 FIXME_docs.
 
void SetLaboIndex (int ind)
 FIXME_docs.
 
int LaboIndex () const
 FIXME_docs.
 
bool LaboActive () const
 FIXME_docs.
 
void Clear ()
 FIXME_docs.
 
size_t Size () 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.
 
void Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const
 FIXME_docs.
 
RlinkCommandListoperator= (const RlinkCommandList &rhs)
 FIXME_docs.
 
RlinkCommandoperator[] (size_t ind)
 FIXME_docs.
 
const RlinkCommandoperator[] (size_t ind) const
 FIXME_docs.
 

Protected Attributes

std::vector< cmd_uptr_tfList
 vector of commands
 
int fLaboIndex
 index of active labo (-1 if no)
 

Detailed Description

FIXME_docs.

Definition at line 40 of file RlinkCommandList.hpp.

Member Typedef Documentation

◆ cmd_uptr_t

Definition at line 42 of file RlinkCommandList.hpp.

◆ exp_uptr_t

Definition at line 43 of file RlinkCommandList.hpp.

Constructor & Destructor Documentation

◆ RlinkCommandList() [1/2]

Retro::RlinkCommandList::RlinkCommandList ( )

Default constructor.

Definition at line 48 of file RlinkCommandList.cpp.

References fList.

◆ RlinkCommandList() [2/2]

Retro::RlinkCommandList::RlinkCommandList ( const RlinkCommandList rhs)

Copy constructor.

Definition at line 58 of file RlinkCommandList.cpp.

References operator=().

◆ ~RlinkCommandList()

Retro::RlinkCommandList::~RlinkCommandList ( )

Destructor.

Definition at line 68 of file RlinkCommandList.cpp.

Member Function Documentation

◆ AddCommand() [1/3]

size_t Retro::RlinkCommandList::AddCommand ( cmd_uptr_t &&  upcmd)

FIXME_docs.

Definition at line 74 of file RlinkCommandList.cpp.

References fList.

Referenced by AddAttn(), AddCommand(), AddInit(), AddLabo(), AddRblk(), AddRreg(), AddWblk(), and AddWreg().

◆ AddCommand() [2/3]

size_t Retro::RlinkCommandList::AddCommand ( const RlinkCommand cmd)

FIXME_docs.

Definition at line 84 of file RlinkCommandList.cpp.

References AddCommand().

◆ AddCommand() [3/3]

size_t Retro::RlinkCommandList::AddCommand ( const RlinkCommandList clist)

FIXME_docs.

Definition at line 92 of file RlinkCommandList.cpp.

References AddCommand(), and fList.

◆ AddRreg()

◆ AddRblk() [1/2]

size_t Retro::RlinkCommandList::AddRblk ( uint16_t  addr,
size_t  size 
)

◆ AddRblk() [2/2]

size_t Retro::RlinkCommandList::AddRblk ( uint16_t  addr,
uint16_t *  block,
size_t  size 
)

FIXME_docs.

Definition at line 122 of file RlinkCommandList.cpp.

References AddCommand().

◆ AddWreg()

◆ AddWblk() [1/3]

size_t Retro::RlinkCommandList::AddWblk ( uint16_t  addr,
const std::vector< uint16_t > &  block 
)

◆ AddWblk() [2/3]

size_t Retro::RlinkCommandList::AddWblk ( uint16_t  addr,
std::vector< uint16_t > &&  block 
)

FIXME_docs.

Definition at line 153 of file RlinkCommandList.cpp.

References AddCommand().

◆ AddWblk() [3/3]

size_t Retro::RlinkCommandList::AddWblk ( uint16_t  addr,
const uint16_t *  block,
size_t  size 
)

FIXME_docs.

Definition at line 163 of file RlinkCommandList.cpp.

References AddCommand().

◆ AddLabo()

◆ AddAttn()

◆ AddInit()

size_t Retro::RlinkCommandList::AddInit ( uint16_t  addr,
uint16_t  data 
)

FIXME_docs.

Definition at line 194 of file RlinkCommandList.cpp.

References AddCommand().

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

◆ SetLastExpectStatus()

void Retro::RlinkCommandList::SetLastExpectStatus ( uint8_t  stat,
uint8_t  statmsk = 0xff 
)

◆ SetLastExpectData()

void Retro::RlinkCommandList::SetLastExpectData ( uint16_t  data,
uint16_t  datamsk = 0xffff 
)

◆ SetLastExpectDone()

void Retro::RlinkCommandList::SetLastExpectDone ( uint16_t  done)

◆ SetLastExpectBlock() [1/4]

void Retro::RlinkCommandList::SetLastExpectBlock ( const std::vector< uint16_t > &  block)

◆ SetLastExpectBlock() [2/4]

void Retro::RlinkCommandList::SetLastExpectBlock ( std::vector< uint16_t > &&  block)

◆ SetLastExpectBlock() [3/4]

void Retro::RlinkCommandList::SetLastExpectBlock ( const std::vector< uint16_t > &  block,
const std::vector< uint16_t > &  blockmsk 
)

◆ SetLastExpectBlock() [4/4]

void Retro::RlinkCommandList::SetLastExpectBlock ( std::vector< uint16_t > &&  block,
std::vector< uint16_t > &&  blockmsk 
)

◆ SetLastExpect()

void Retro::RlinkCommandList::SetLastExpect ( exp_uptr_t &&  upexp)

FIXME_docs.

Definition at line 296 of file RlinkCommandList.cpp.

References fList.

◆ ClearLaboIndex()

void Retro::RlinkCommandList::ClearLaboIndex ( )
inline

FIXME_docs.

Definition at line 33 of file RlinkCommandList.ipp.

References fLaboIndex.

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

◆ SetLaboIndex()

void Retro::RlinkCommandList::SetLaboIndex ( int  ind)
inline

FIXME_docs.

Definition at line 24 of file RlinkCommandList.ipp.

References fLaboIndex.

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

◆ LaboIndex()

int Retro::RlinkCommandList::LaboIndex ( ) const
inline

FIXME_docs.

Definition at line 42 of file RlinkCommandList.ipp.

References fLaboIndex.

◆ LaboActive()

bool Retro::RlinkCommandList::LaboActive ( ) const
inline

FIXME_docs.

Definition at line 50 of file RlinkCommandList.ipp.

References fLaboIndex.

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

◆ Clear()

◆ Size()

◆ Print()

void Retro::RlinkCommandList::Print ( std::ostream &  os,
const RlinkAddrMap pamap = 0,
size_t  abase = 16,
size_t  dbase = 16,
size_t  sbase = 16 
) const

FIXME_docs.

Definition at line 318 of file RlinkCommandList.cpp.

References fList.

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

◆ Dump()

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

◆ operator=()

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

FIXME_docs.

Definition at line 354 of file RlinkCommandList.cpp.

References fLaboIndex, and fList.

Referenced by RlinkCommandList().

◆ operator[]() [1/2]

Retro::RlinkCommand & Retro::RlinkCommandList::operator[] ( size_t  ind)

FIXME_docs.

Definition at line 367 of file RlinkCommandList.cpp.

◆ operator[]() [2/2]

const Retro::RlinkCommand & Retro::RlinkCommandList::operator[] ( size_t  ind) const

FIXME_docs.

Definition at line 375 of file RlinkCommandList.cpp.

Member Data Documentation

◆ fList

std::vector<cmd_uptr_t> Retro::RlinkCommandList::fList
protected

◆ fLaboIndex

int Retro::RlinkCommandList::fLaboIndex
protected

index of active labo (-1 if no)

Definition at line 95 of file RlinkCommandList.hpp.

Referenced by Clear(), ClearLaboIndex(), Dump(), LaboActive(), LaboIndex(), operator=(), and SetLaboIndex().


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