31using namespace std::placeholders;
68 uint16_t(1)<<
kLam,
this);
78 throw Rexception(
"Rw11::AddCpu",
"Bad state: already 4 cpus registered");
79 if (
fNCpu > 0 &&
fspCpu[0]->Type() != spcpu->Type())
80 throw Rexception(
"Rw11::AddCpu",
"Bad state: type mismatch, new is "
81 + spcpu->Type() +
" first was " +
fspCpu[0]->Type());
104 throw Rexception(
"Rw11::Start()",
"alread started");
117void Rw11::Dump(std::ostream& os,
int ind,
const char* text,
int )
const
120 os << bl << (text?text:
"--") <<
"Rw11 @ " <<
this << endl;
122 os << bl <<
" fspServ: " <<
fspServ.get() << endl;
123 os << bl <<
" fNCpu: " <<
fNCpu << endl;
124 os << bl <<
" fspCpu[4]: ";
125 for (
auto& o:
fspCpu) os << o.get() <<
" ";
138 for (
size_t i=0; i<
fNCpu; i++)
fspCpu[i]->W11AttnHandler();
void GetAttnInfo(AttnArgs &args, RlinkCommandList &clist)
FIXME_docs.
I/O appicator to generate fill characters.
std::shared_ptr< RlinkServer > fspServ
int AttnHandler(RlinkServer::AttnArgs &args)
FIXME_docs.
Rw11Cpu & Cpu(size_t ind) const
FIXME_docs.
RlinkServer & Server() const
FIXME_docs.
static const int kLam
W11 CPU cluster lam.
virtual ~Rw11()
Destructor.
Rw11()
Default constructor.
void AddCpu(const std::shared_ptr< Rw11Cpu > &spcpu)
FIXME_docs.
void SetServer(const std::shared_ptr< RlinkServer > &spserv)
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
bool fStarted
true if Start() called
std::shared_ptr< Rw11Cpu > fspCpu[4]
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.