|
virtual uint32 | ContactModule (uint32 auAddress, uint32 auData) |
|
virtual CINOSBusModule * | Find (char *apName) |
|
virtual CINOSBusModule * | Find (uint32 auNumber) |
|
virtual CINOSBusModule * | FindFromAddress (uint32 auAddress) |
|
virtual CINOSBusModule * | FindFromBusNr (uint32 auBusNr) |
|
virtual uint8 | GetBusNr (uint32 auVirtualAddress) |
|
virtual bool | IsBusTask (CINOSTask *apTask) |
| get bus number of module with given address
|
|
bool | IsSimulated () |
|
CINOSBusModule * | FindFromDigInp (const char *apName) |
|
CINOSBusModule * | FindFromDigOut (const char *apName) |
|
CINOSBusJob * | FindJob (uint32 auTraAddress) |
|
virtual void | Start (uint32 auState=3) |
|
virtual void | Stop () |
|
virtual void | Reset () |
|
virtual void | RegisterOversampling (uint32 auCycleTimeNs, uint8 auOversampling) |
|
virtual uint32 | RegisterHook (uintid &auHookId, void *apHandler, void *apObject=0, uint32 auCycleTime=0, uint16 auCycleId=(0xffff), int32 aiOrder=20, bool abEnabled=true) |
| Register hook and return hook id. The registered function will be called in the context of the corresponding fieldbus task.
|
|
virtual uint32 | RegisterPostHook (uintid &auHookId, void *apHandler, void *apObject=0, uint32 auCycleTime=0, uint16 auCycleId=(0xffff), int32 aiOrder=20, bool abEnabled=true) |
| Register post hook and return hook id. The registered function will be called in the context of the corresponding fieldbus task.
|
|
uint32 | RegisterErrorHook (uintid &auHookId, void *apHandler, void *apObject=0) |
| Register error hook and return hook id. The registered function will be called in the context of the corresponding fieldbus task.
|
|
virtual uint32 | UnRegisterHook (uintid auHookId) |
| Unregister hook with given id.
|
|
virtual uint32 | UnRegisterPostHook (uintid auHookId) |
| Unregister post hook with given id.
|
|
uint32 | UnRegisterErrorHook (uintid auHookId) |
| Unregister error hook with given id.
|
|
uint32 | EnableHook (uintid auHookId) |
| Enable hook with given id.
|
|
uint32 | DisableHook (uintid auHookId) |
| Enable hook with given id.
|
|
void * | GetHookHandler (uintid auHookId) |
| Get handler of given hook.
|
|
uint32 | SetHookHandler (uintid auHookId, void *apHandler) |
| Set handler of given hook.
|
|
uint8 | GetHookCycleNumber (uintid auHookId) |
| Get cycle number of given hook.
|
|
uint32 | GetHookCycleTime (uintid auHookId) |
| Get cycle time of given hook.
|
|
void | ChangeHookId (uintid auOldHookId, uintid auNewHookId) |
|
virtual const char * | GetCategoryName (const uint32 auCategory) const |
|
virtual const CINOSTask * | GetCategoryTask (const uint32 auCategory) const |
|
uint32 | GetState () |
|
uint32 | GetActCycle () |
|
virtual uint16 * | GetActCycleAdr (uint8 auCategory) |
|
virtual uint16 | GetActCycleId () |
|
uint32 | GetHeartBeat () |
|
uint32 | GetSubCycles () |
|
uint32 | GetMainCycles () |
|
virtual void | SetErrorCounter (uint32 auErrorCounter) |
|
virtual uint32 | GetErrorCounter () |
|
void | SetOverrunCounter (uint32 auOverrunCounter) |
|
uint32 | GetOverrunCounter () |
|
void | SetPostOverrunCounter (uint32 auPostOverrunCounter) |
|
uint32 | GetPostOverrunCounter () |
|
virtual void | DiagnosticOn () |
|
virtual void | DiagnosticOff () |
|
const char * | GetType () |
| Get bus type, used for consistency checks.
|
|
virtual uint16 | GetOffset (bool abReal=true) |
|
uint8 | GetId () |
|
uint32 | GetOptions () |
|
uint16 | GetOptionsEx () |
|
void | SetOptionsEx (uint16 auOptions) |
|
void | ClrOptionsEx (uint16 auOptions) |
|
uint64 | GetTickCount () |
|
uint64 * | GetTickCountAdr () |
|
void | SetTickCount (uint64 auTicks) |
|
virtual uint32 | GetTickTime () |
|
virtual uint32 | GetTickTimeNs () |
|
uint32 | GetMainCycleTime () |
|
uint32 | GetMainCycleTimeNs () |
|
virtual uint32 | GetSubCycleTime (uint8 auCategory=0) |
|
virtual uint32 | GetSubCycleTimeNs (uint8 auCategory=0) |
|
uint32 | GetError () |
|
void | SetErrorMask (uint32 auMask) |
|
uint32 | GetErrorMask () |
|
void | AcceptError (uint32 auError=0xffffffff) |
|
uint8 | GetScanIncludeModuleName () |
|
uint16 | GetScanMaxWaitForBus () |
|
uint16 | GetScanMaxWaitForModules () |
|
virtual uint32 | GetParam (const char *apName, real64 &arResult) |
|
virtual void | ResetMeasure () |
|
virtual void | SyncBus (uint32 auCmdOffset) |
|
virtual void | Accelerate () |
|
virtual void | Decelerate () |
|
virtual void | Exactelerate () |
|
real64 | GetTimebase (uint32 auHigh, uint32 auLow) |
|
virtual uint8 | GetCategory (CINOSBusPort *apPort) |
|
virtual uint8 | GetFastestCategory () |
|
uint32 | GetCategoryNs (CINOSBusPort *apPort) |
|
virtual uint8 | GetCategory (SINOSBusPort *apPort) |
|
uint8 | GetCategory (uint32 auCycleTimeNs, bool abAssertOnError=true) |
|
uint32 | GetCategoryNs (uint8 auCategory) |
|
uint16 | GetCycleId (CINOSBusPort *apPort) |
|
uint8 | GetPage (CINOSBusPort *apPort) |
|
uint8 | GetPage (uint32 auCycleTimeNs) |
|
uint32 | ConvertToNs (uint32 auValue) |
|
virtual uint16 | GetCycleId (const char *apName) |
|
virtual uint32 | GetCycleTimeNs (const char *apName) |
|
virtual void | Sleep (uint32 auBusTicks) |
|
virtual void | SleepClocked (uint32 auBusTicks) |
|
virtual void | FlushCache (uint8 auCategory) |
|
virtual CINCOObject * | GetRegister () |
|
virtual CINCOObject * | GetModulesObj () |
| Return root registration object of modules.
|
|
uint8 | GetCoreCount () const |
|
INOS_INLINE void | AtomicGatherEnter (uint32 &ouToken) |
|
INOS_INLINE bool | AtomicGatherExit (uint32 auToken) |
|
bool | IsWatchdogPending (uint8 auCategory) |
| Return true if fieldbus watchdog pending of the given category.
|
|
| CINOSBus (SINOSBus *apDesc) |
|
virtual uint32 | SetState (uint32 auState) |
|
void | SetHeartBeat (uint32 auHeartBeat) |
|
uint32 | GetVirtualCycleIndex () |
|
virtual void | Add (CINOSBusModule *apModule) |
|
virtual void | Remove (CINOSBusModule *apModule) |
|
virtual void | RemoveAll () |
|
virtual void | Scan () |
|
virtual void | Prepare () |
|
virtual void | PostPrepare () |
|
virtual void | Initialyse () |
|
virtual bool | InitDone () |
|
virtual bool | IsDynamic () |
|
virtual bool | IsCategoryBased () |
|
uint32 | GetChannelBase (uint16 auAddress) |
| get channel base number of module auAddress
|
|
uint32 | GetBitBase (uint16 auAddress) |
| get bit channel base number of module auAddress
|
|
| CINOSTask (char *apName=nullptr, uint32 auStackSize=defDefaultStackSize, uint32 auPriority=DF_INOS_TASK_PRIO_LOWEST, bool abFloatingPoint=true, uint32 auTimeSlice=defDefaultTimeSlice, bool abInterruptsDisabled=false, void *apHandler=0, void *apObject=0) |
| Create a task with given properties. One needs to Resume the task after creation to get it running.
|
|
| CINOSTask (std::function< void(void *)> aFunction, void *apParam=nullptr, uint8 auPriority=DF_INOS_TASK_PRIO_LOWEST) |
| Create a task with given properties. One needs to Resume the task after creation to get it running.
|
|
| CINOSTask (const char *apName, std::function< void(void *)> aFunction, void *apParam=nullptr, uint8 auPriority=DF_INOS_TASK_PRIO_LOWEST) |
| Create a task with given properties. One needs to Resume the task after creation to get it running.
|
|
virtual | ~CINOSTask () |
| Destroy task.
|
|
virtual uint32 | Shutdown (CINOSSync *apSync=DF_INOS_SYNCHRONOUS) |
| Shutdown task, used to shutdown a foreign task.
|
|
virtual uint32 | Join () |
| Join task or in other words, wait till it terminates.
|
|
virtual void | Detach () |
| Detach task from parent. One uses this method if one doesn't want this task to be shut down if the parent shuts down.
|
|
virtual void | Exit () |
| Terminate myself. Exit code is INOS_OK or the code previously set with SetExitCode.
|
|
virtual void | Exit (uint32 auExitCode) |
| Terminate myself.
|
|
virtual void | SetExitCode (uint32 auExitCode) |
| Set exit code.
|
|
virtual uint32 | GetExitCode () |
| Get exit code.
|
|
virtual bool | CheckShutdown () |
| Check if a shutdown is pending.
|
|
virtual void | SetSuspendHook (void *apSuspendHook) |
| Set Suspend hook.
|
|
virtual void | ClrSuspendHook () |
| Clear Suspend hook.
|
|
virtual void * | GetSuspendHook () |
| Get Suspend hook if any.
|
|
INOS_INLINE ETskType | GetTskType () |
| Get task type.
|
|
INOS_INLINE ETskType | SetTskType (ETskType aeType) |
| Set task type.
|
|
|
void | EnableTasklogTriggerOverrun (uint8 auPercent) |
|
void | DisableTasklogTriggerOverrun () |
|
void | EnableTasklogTriggerPostOverrun (uint8 auPercent) |
|
void | DisableTasklogTriggerPostOverrun () |
|
void | SyncBusOn () |
|
void | SyncBusOff () |
|
uint8 | VirtualAddressAlloc () |
| allocate virtual module address
|
|
void | VirtualAddressFree (uint8 auAddress) |
| free virtual module address
|
|
bool | VirtualAddressCheck (uint8 auAddress) |
| check virtual module address
|
|
uint32 | GetRealCycleIndex (uint32 auVirtualCycle) |
|
void | SortJobs () |
|
void * | RequestEepromBuffer () |
|
void | ReleaseEepromBuffer (void *apBuffer) |
|
void | HandleDownSampling () |
|
SINOSBusHandlerBuffer * | HandlerBufferPrepare (SINOSBusHandlerBuffer *&apBuffer) |
|
void | HandlerBufferDone (SINOSBusHandlerBuffer *&apBuffer, SINOSBusHandlerBuffer *apNew) |
|
bool | HandlerBufferEqualContent (SINOSBusHandlerBuffer *apBuffer1, SINOSBusHandlerBuffer *apBuffer2) |
|
void | HandlerBufferSetup () |
|
void | HandlerBufferSetupRec (uint8 auCategory=0) |
|
ICACHE void | HandleRecData (uint8 auCategory=0) |
|
void | HandlerBufferSetupRecM (uint16 auCycleId) |
|
ICACHE void | HandleRecDataM (uint16 auCycleId) |
|
void | HandlerBufferSetupTra (uint8 auCategory=0) |
|
ICACHE void | HandleTraData (uint8 auCategory=0) |
|
void | HandlerBufferSetupTraM (uint16 auCycleId) |
|
ICACHE void | HandleTraDataM (uint16 auCycleId) |
|
ICACHE void | HandleHooks (uint8 auCategory=0) |
|
ICACHE void | HandlePostHooks (uint8 auCategory=0, bool abWakeupPostTask=true) |
|
void | iHandlePostHooks () |
|
virtual uint32 | iRegisterHook (uintid &auHookId, SINOSBusHook **apHooks, void *apHandler, void *apObject, uint32 auCycleTime, uint16 auCycleId, int32 aiOrder, bool abEnabled) |
|
void | iUnRegisterHook (uintid auHookId, bool abDestroyFirst=true) |
|
void | iInsertHook (SINOSBusHook **apList, SINOSBusHook *apHook) |
|
void | iRemoveHook (SINOSBusHook *apHook, bool abDestroy=true) |
|
void | iDeleteHook (SINOSBusHook *apHook) |
|
bool | iToBeRemoved (uintid auHookId) |
|
void | iCleanupHooks (bool abDestroyFirst=true) |
|
void | Measure () |
|
void | SetError (uint32 auErrors) |
|
INOS_INLINE void | AtomicGatherBeginUpdate () |
|
INOS_INLINE void | AtomicGatherEndUpdate () |
|
virtual void | Action () |
| Task action loop, needs to be overwritten by the user. For more info, see section Creation.
|
|