Main Page | Modules | Related Pages

Timer Functions

Functions


Function Documentation

u16 hel_TimerGetValue u8  TimerNo  ) 
 

Get Counter Value.

Parameters:
TimerNo Channel of the Timer (0..3)
Returns:
Returns the 16bit counter value of the timer specified by TimerNo
See also:
hel_TimerSetValue

u8 hel_TimerIsEnabled u8  TimerNo  ) 
 

Check if timer is enabled.

Checks if the timer specified by TimerNo is enabled or not

Parameters:
TimerNo Channel of the Timer (0..3)
Returns:
Returns TRUE when the timer specified by TimerNo is enabled, otherwise FALSE.
See also:
hel_TimerStart, hel_TimerStop, hel_TimerStopAll

void hel_TimerResetValue u8  TimerNo  ) 
 

Reset Counter Value.

The hel_TimerResetValue function sets the 16bit counter value of the timer specified by TimerNo to zero.

Parameters:
TimerNo Channel of the Timer (0..3)
See also:
hel_TimerSetValue, hel_TimerGetValue

void hel_TimerSetEnable u8  TimerNo,
u8  Value
 

Start/Stop a timer.

Starts or stops the timer specified by TimerNo, depending on the value specified by Value

Parameters:
TimerNo Channel of the Timer (0..3)
Value Set Value to TRUE, to start the timer specified by TimerNo, FALSE to stop it.
See also:
hel_TimerStart, hel_TimerStop, hel_TimerStopAll

void hel_TimerSetFrequency u8  TimerNo,
u8  Value
 

Set frequency.

Set the frequency at which the timer updates.

Parameters:
TimerNo Channel of the Timer (0..3)
Value The frequency value you want to set the timer to. This can be one of the following:
               +---------+------------------------------------+
               |   Value | Frequency                          |
               +---------+------------------------------------+
               |       0 | 59,595 nanos (running 16,78MHz)    |
               |       1 |  3,841 micrs (running clock/64)    |
               |       2 | 15,256 micrs (running clock/256)   |
               |       3 | 61,025 micrs (running clock/1024)  |
               +---------+------------------------------------+

void hel_TimerSetValue u8  TimerNo,
u16  Value
 

Set Counter Value.

The hel_TimerSetValue function sets the 16bit counter value of the timer specified by TimerNo to value specified by Value.

Parameters:
TimerNo Channel of the Timer (0..3)
Value Value to set the counter to
See also:
hel_TimerGetValue

void hel_TimerStart u8  TimerNo  ) 
 

Start a timer.

Starts the timer specified by TimerNo

Parameters:
TimerNo Channel of the Timer (0..3)
See also:
hel_TimerStop, hel_TimerStopAll

void hel_TimerStop u8  TimerNo  ) 
 

Stop a timer.

Stops the timer specified by TimerNo

Parameters:
TimerNo Channel of the Timer (0..3)
See also:
hel_TimerStart, hel_TimerStopAll

void hel_TimerStopAll void   ) 
 

Stop all Timers.

The hel_TimerStopAll function stops all enabled timers.

See also:
hel_TimerStop


Generated on Sun Oct 9 20:21:01 2005 by DoxyGen 1.4.4