Typedefs | |
| typedef POSTIMER_t | NOSTIMER_t |
Functions | |
| NANOEXT NOSTIMER_t POSCALL | nosTimerCreate (const char *name) |
| NANOEXT VAR_t POSCALL | nosTimerSet (NOSTIMER_t tmr, NOSSEMA_t sema, UINT_t waitticks, UINT_t periodticks) |
| NANOEXT VAR_t POSCALL | nosTimerStart (NOSTIMER_t tmr) |
| NANOEXT VAR_t POSCALL | nosTimerStop (NOSTIMER_t tmr) |
| NANOEXT void POSCALL | nosTimerDestroy (NOSTIMER_t tmr) |
| NANOEXT VAR_t POSCALL | nosTimerFired (NOSTIMER_t tmr) |
| typedef POSTIMER_t NOSTIMER_t |
Handle to a nano layer timer object.
| NANOEXT NOSTIMER_t POSCALL nosTimerCreate | ( | const char * | name | ) |
Timer function. Allocates a timer object. After a timer is allocated with this function, it must be set up with nosTimerSet and than started with nosTimerStart.
| name | Name of the new timer object to create. If the last character in the name is an asteriks (*), the operating system automatically assigns the timer an unique name (the registry feature must be enabled for this automatism). This parameter can be NULL if the nano layer registry feature is not used and will not be used in future. |
| NANOEXT void POSCALL nosTimerDestroy | ( | NOSTIMER_t | tmr | ) |
Timer function. Deletes a timer object and free its resources.
| tmr | handle to the timer object. |
| NANOEXT VAR_t POSCALL nosTimerFired | ( | NOSTIMER_t | tmr | ) |
Timer function. The function is used to test if a timer has fired.
| tmr | handle to the timer object. |
| NANOEXT VAR_t POSCALL nosTimerSet | ( | NOSTIMER_t | tmr, | |
| NOSSEMA_t | sema, | |||
| UINT_t | waitticks, | |||
| UINT_t | periodticks | |||
| ) |
Timer function. Sets up a timer object.
| tmr | handle to the timer object. | |
| sema | seaphore object that shall be signaled when timer fires. | |
| waitticks | number of initial wait ticks. The timer fires the first time when this ticks has been expired. | |
| periodticks | After the timer has fired, it is reloaded with this value, and will fire again when this count of ticks has been expired (auto reload mode). If this value is set to zero, the timer won't be restarted (= one shot mode). |
| NANOEXT VAR_t POSCALL nosTimerStart | ( | NOSTIMER_t | tmr | ) |
Timer function. Starts a timer. The timer will fire first time when the waitticks counter has been reached zero. If the periodticks were set, the timer will be reloaded with this value.
| tmr | handle to the timer object. |
| NANOEXT VAR_t POSCALL nosTimerStop | ( | NOSTIMER_t | tmr | ) |
Timer function. Stops a timer. The timer will no more fire. The timer can be reenabled with nosTimerStart.
| tmr | handle to the timer object. |
1.5.4