TRC Library for FTC (2011) 2011
TRC Library Code Project

C:/Users/Michael/Ftc/2011/code/trclib/timer.h File Reference

Go to the source code of this file.

Data Structures

struct  TIMER

Defines

#define _TIMER_H
#define MOD_ID   MOD_TIMER
#define TIMERF_USER_MASK   0x00ff
#define TIMERF_ENABLED   0x0100
#define TIMERF_ENABLE_EVENTS   0x0001

Functions

void TimerEvent (__in TIMER &timer)
void TimerInit (__out TIMER &timer, __in int timerFlags)
void TimerSet (__out TIMER &timer, __in int time)
void TimerReset (__out TIMER &timer)
void TimerTask (__inout TIMER &timer)

Define Documentation

#define _TIMER_H

Definition at line 16 of file timer.h.

#define MOD_ID   MOD_TIMER

Definition at line 23 of file timer.h.

#define TIMERF_ENABLE_EVENTS   0x0001

Definition at line 30 of file timer.h.

#define TIMERF_ENABLED   0x0100

Definition at line 29 of file timer.h.

#define TIMERF_USER_MASK   0x00ff

Definition at line 28 of file timer.h.


Function Documentation

void TimerEvent ( __in TIMER timer)
void TimerInit ( __out TIMER timer,
__in int  timerFlags 
)

This function initializes the event timer.

Parameters:
timerPoints to the TIMER structure to be initialized.
timerFlagsSpecifies the timer flags.

Definition at line 56 of file timer.h.

void TimerReset ( __out TIMER timer)

This function resets the event timer.

Parameters:
timerPoints to the TIMER structure.

Definition at line 100 of file timer.h.

void TimerSet ( __out TIMER timer,
__in int  time 
)

This function sets the event timer.

Parameters:
timerPoints to the TIMER structure.
timeSpecifies the expire time relative to current time in msec.

Definition at line 79 of file timer.h.

void TimerTask ( __inout TIMER timer)

This function performs the timer task.

Parameters:
timerPoints to the TIMER structure.

Definition at line 120 of file timer.h.

 All Data Structures Files Functions Variables Defines