NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
Collaboration diagram for Timer:

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 -—.
 

Detailed Description

Function Documentation

◆ DelAlarm()

TIMER_HANDLE DelAlarm ( TIMER_HANDLE handle)

Delete an alarm before expiring.

Parameters
handleA timer handle
Returns
The 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().

Here is the caller graph for this function:

◆ SetAlarm()

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.

Parameters
*dPointer to a CAN object data structure
idThe alarm Id
callbackA callback function
valueCall the callback function at current time + value
periodCall periodically the callback function
Returns
handle The timer handle

Definition at line 37 of file timer.c.

Referenced by _sendPDOevent(), heartbeatInit(), processNODE_GUARD(), and startSYNC().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StartTimerLoop()

void StartTimerLoop ( TimerCallback_t Callback)

Start the timer task.

Parameters
CallbackA callback function

◆ StopTimerLoop()

void StopTimerLoop ( TimerCallback_t Callback)

Stop the timer task.

Parameters
CallbackA callback function

◆ TimeDispatch()

void TimeDispatch ( void )

TimeDispatch is called on each timer expiration -—.

Definition at line 102 of file timer.c.

Here is the call graph for this function: