|
| enum | {
eResModule = 0
, eResDigInp = 1
, eResDigOut = 2
, eResAnaInp = 3
,
eResAnaOut = 4
, eResDigFlg = 5
, eResPos = 6
, eResAxis = 7
,
eResControl = 8
, eResSio = 9
} |
| |
| enum | EResFlag {
eResFlgNone = 0x00000000
, eResFlgMandatory = 0x00000001
, eResFlgCountUp = 0x00000002
, eResFlgCountDown = 0x00000004
,
eResFlgCountUpDown = (eResFlgCountUp + eResFlgCountDown)
, eResFlgStat = eResFlgCountUpDown
} |
| |
| enum | {
eStaUndefined
, eStaOk
, eStaNotFound
, eStaSetNotFound
,
eStaClrNotFound
} |
| |
|
|
| CINOSMcModuleRes (const char *apName, const inosResName *apValue, void *apPtr, uint32 auType, CINOSMcModule *apModule, uint32 auFlags) |
| | constructor
|
| |
|
uint32 | GetResState () |
| | get state
|
| |
| void | Update () |
| |
|
void | Handle () |
| | handle resource
|
| |
|
void | EnbResource () |
| | enable resource
|
| |
|
void | DisResource () |
| | disable resource
|
| |
|
void | SetOut (real64 arValue) |
| | set output
|
| |
|
bool | GetIO (real64 &arValue) const |
| | get actual state of an IO
|
| |
|
void | SetSetId (int16 aiSetId, const char *apParam=0) |
| | set setid
|
| |
|
void | SetClrId (int16 aiClrId, const char *apParam=0) |
| | set clrid
|
| |
|
uint32 | GetResType () |
| | get resource type
|
| |
|
uint32 | GetResId () const |
| | get resource id
|
| |
|
const char * | GetOrgName () |
| | get original resource name
|
| |
|
const char * | GetFullName () |
| | get full resource name
|
| |
|
const char * | GetIncoName () |
| | get inco resource name
|
| |
|
const char * | GetUnit () |
| | get resource unit
|
| |
|
void | RegisterStat (CINCOObject *apParent) |
| | Add statistics registry to given object.
|
| |
|
template<class T > |
| void | GetResource (T *&apResource) |
| |
|
void | SetObj (CINCOObject *apObj) |
| | set pointer to parent object
|
| |
|
CINCOObject * | GetObj () |
| | get pointer to parent object
|
| |
|
bool | GetHookInfo (uint8 &aoBusId, uint16 &aoCycleId, uint32 &aoCycleTime) const |
| | get hook info
|
| |
|
virtual long | Put (void *aSource, long aIndex=0, long aOffset=0) override |
| |
|
| DECLARE_DYNAMIC (CINOSMcModuleRes) |
| | dynamic object handling
|
| |
|
|
inosName64 | m_cFullName |
| | inco name
|
| |
|
inosResName | m_cName |
| | resource name (including command names)
|
| |
|
inosName64 | m_cPureName |
| | resource name
|
| |
|
inosName | m_cUnit |
| | resource unit
|
| |
|
char * | m_pCmdSet |
| | pointer to set command (if any)
|
| |
|
char * | m_pCmdClr |
| | pointer to clear command (if any)
|
| |
|
CINOSMcModule * | m_pModule |
| | pointer to module
|
| |
|
void * | m_pResPtr |
| | pointer to resource pointer
|
| |
|
void * | m_pDummy |
| | dummy
|
| |
|
uint32 | m_uResTyp |
| | resource type
|
| |
|
uint32 | m_uResId |
| | resource id
|
| |
|
uint32 | m_uResState |
| | resource state
|
| |
|
uint32 | m_uResFlags |
| | resource flags
|
| |
|
bool | m_bEnabled |
| | resource enabled (inp command handling)
|
| |
|
bool | m_bSet |
| | bit state (only input)
|
| |
|
intptr | m_iSetId |
| | set command id and type(only input)
|
| |
|
int16 | m_iSetType |
| |
|
uint32 | m_uSetSubId |
| |
|
intptr | m_iClrId |
| | cleared command id and type (only input)
|
| |
|
int16 | m_iClrType |
| |
|
uint16 | m_uIncoIndex |
| | inco name index
|
| |
|
inosName32 | m_cSetParam |
| | set command param
|
| |
|
inosName32 | m_cClrParam |
| | cleared command param
|
| |
|
nvuint32 | m_uCounter |
| |
|
CINCOObject * | m_pObj {} |
| | pointer to my parent inco object
|
| |
◆ Update()
| void CINOSMcModuleRes::Update |
( |
| ) |
|
update (called just before the resource check is done, we currently use this only to handle 'late' created submodules)
The documentation for this class was generated from the following file: