|
NNP STM Generic Remote Module git-main
|

Functions | |
| void | EnterMutex (void) |
| Acquire mutex. | |
| void | LeaveMutex (void) |
| Release mutex. | |
| void | TimerInit (void) |
| Initialize Timer. | |
| void | TimerCleanup (void) |
| Cleanup Timer. | |
| void | StartTimerLoop (TimerCallback_t Callback) |
| Start the timer task. | |
| void | StopTimerLoop (TimerCallback_t Callback) |
| Stop the timer task. | |
| TIMER_HANDLE | SetAlarm (CO_Data *d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period) |
| Set an alarm to execute a callback function when expired. | |
| TIMER_HANDLE | DelAlarm (TIMER_HANDLE handle) |
| Delete an alarm before expiring. | |
| void | TimeDispatch (void) |
| TimeDispatch is called on each timer expiration -—. | |
| TIMER_HANDLE DelAlarm | ( | TIMER_HANDLE | handle | ) |
Delete an alarm before expiring.
| handle | A timer handle |
Definition at line 83 of file timer.c.
Referenced by _sendPDOevent(), heartbeatStop(), PDOStop(), processNODE_GUARD(), processPDO(), ProducerHearbeatAlarm(), stopSYNC(), and TPDO_Communication_Parameter_Callback().

| TIMER_HANDLE SetAlarm | ( | CO_Data * | d, |
| UNS32 | id, | ||
| TimerCallback_t | callback, | ||
| TIMEVAL | value, | ||
| TIMEVAL | period ) |
Set an alarm to execute a callback function when expired.
| *d | Pointer to a CAN object data structure |
| id | The alarm Id |
| callback | A callback function |
| value | Call the callback function at current time + value |
| period | Call periodically the callback function |
Definition at line 37 of file timer.c.
Referenced by _sendPDOevent(), heartbeatInit(), processNODE_GUARD(), and startSYNC().


| void StartTimerLoop | ( | TimerCallback_t | Callback | ) |
Start the timer task.
| Callback | A callback function |
| void StopTimerLoop | ( | TimerCallback_t | Callback | ) |
Stop the timer task.
| Callback | A callback function |