|
Data Structures | |
struct | typeTMR |
Files | |
file | TMR-driver.h |
Additional _timers for ROBOTC. | |
Defines | |
#define | MAX_TIMERS 10 |
Functions | |
int | TMRnewTimer () |
bool | TMRisExpired (int timerIdx) |
void | TMRreset (int timerIdx) |
void | TMRreset (int timerIdx, long duration) |
void | TMRsetup (int timerIdx, long duration) |
void | TMRexpire (int timerIdx) |
Variables | |
typeTMR | _timers [MAX_TIMERS] |
Timer Library
#define MAX_TIMERS 10 |
Maximum number of _timers Struct for timer data
Definition at line 41 of file TMR-driver.h.
void TMRexpire | ( | int | timerIdx ) |
Cause the timer to expire.
timerIdx | the timer to be expired. |
Definition at line 121 of file TMR-driver.h.
bool TMRisExpired | ( | int | timerIdx ) |
Check if the timer has expired.
timerIdx | the timer to be checked. |
Definition at line 80 of file TMR-driver.h.
int TMRnewTimer | ( | ) |
Create a new timer. It's an index to the next available timer in the array of timer structs.
Definition at line 66 of file TMR-driver.h.
void TMRreset | ( | int | timerIdx, |
long | duration | ||
) |
Reset the timer, will also mark "expired" flag as false.
timerIdx | the timer to be checked. |
duration | the amount of time the timer should run for before expiring. |
Definition at line 109 of file TMR-driver.h.
void TMRreset | ( | int | timerIdx ) |
Reset the timer, will also mark "expired" flag as false.
This function will also check if the TMRtask is running and start it up if this isn't the case.
timerIdx | the timer to be checked. |
Definition at line 97 of file TMR-driver.h.
void TMRsetup | ( | int | timerIdx, |
long | duration | ||
) |
Configure the duration of the timer.
timerIdx | the timer to be checked. |
duration | the amount of time the timer should run for before expiring. |
Definition at line 133 of file TMR-driver.h.
Array to hold timer data
Definition at line 51 of file TMR-driver.h.