39 const std::string& cclass)
43 AddMeth(
"bootcode", [
this](
RtclArgs& args){
return M_bootcode(args); });
45 TC* pobj = fspObj.get();
46 fGets.Add<
const std::string&>(
"type", std::bind(&TC::Type, pobj));
47 fGets.Add<
const std::string&>(
"name", std::bind(&TC::Name, pobj));
48 fGets.Add<uint16_t> (
"base", std::bind(&TC::Base, pobj));
49 fGets.Add<
int> (
"lam", std::bind(&TC::Lam, pobj));
50 fGets.Add<
bool> (
"found", std::bind(&TC::ProbeFound, pobj));
51 fGets.Add<uint16_t> (
"pdataint", std::bind(&TC::ProbeDataInt, pobj));
52 fGets.Add<uint16_t> (
"pdatarem", std::bind(&TC::ProbeDataRem, pobj));
53 fGets.Add<
bool> (
"enable", std::bind(&TC::Enable, pobj));
54 fGets.Add<
bool> (
"started", std::bind(&TC::IsStarted, pobj));
55 fGets.Add<uint32_t> (
"trace", std::bind(&TC::TraceLevel,pobj));
57 fSets.Add<
bool> (
"enable", std::bind(&TC::SetEnable,pobj,
58 std::placeholders::_1));
59 fSets.Add<uint32_t> (
"trace", std::bind(&TC::SetTraceLevel,pobj,
60 std::placeholders::_1));
95 if (!args.
GetArg(
"?unit", unit, 0, Obj().NUnit()-1))
return kERR;
96 if (!args.
AllDone())
return kERR;
98 std::vector<uint16_t> code;
101 if (Obj().BootCode(unit, code, aload, astart)) {
102 RtclOPtr pres(Tcl_NewListObj(0, NULL));
103 Tcl_ListObjAppendElement(NULL, pres, Tcl_NewIntObj(
int(aload)));
104 Tcl_ListObjAppendElement(NULL, pres, Tcl_NewIntObj(
int(astart)));
105 Tcl_ListObjAppendElement(NULL, pres, Rtcl::NewListIntObj(code));
bool GetArg(const char *name, Tcl_Obj *&pval)
FIXME_docs.
void SetResult(const std::string &str)
FIXME_docs.
bool AllDone()
FIXME_docs.
Implemenation (inline) of RtclOPtr.
Implemenation (all inline) of RtclRw11CntlBase.
RtclRw11CntlBase(const std::string &type, const std::string &cclass)
Constructor.
Declaration of class ReventLoop.