Timer.h File Reference

This graph shows which files directly or indirectly include this file:


Data Structures

struct  timer_t

Functions

void TimerInit ()
 Inicializa el timer.
void TimerInc ()
 Incrementa la variable de timer.
timer_t TimerGet ()
 Devuelve el valor del timer.
timer_t TimerSet (unsigned char horas, unsigned char minutos, unsigned char segundos)
 Setea el valor del timer.

Function Documentation

timer_t TimerGet (  ) 

Devuelve el valor del timer.

Returns:
variable del tipo timer_t

void TimerInc (  ) 

Incrementa la variable de timer.

Se actualizan las horas, minutos y segundos según corresponda cada 250 ms

void TimerInit (  ) 

Inicializa el timer.

Configura el Timer2, inicializa la variable del timer y habilita las interrupciones del timer

HABILITAR INTERRUPCIONES TIMER2 por OVERFLOW Espero TCN2UB, OCR2UB, and TCR2UB para eliminar datos corruptos

timer_t TimerSet ( unsigned char  horas,
unsigned char  minutos,
unsigned char  segundos 
)

Setea el valor del timer.

Parameters:
horas 
minutos 
segundos 
Returns:
el valor modificado del timer


Generated on Thu Aug 21 14:29:39 2008 for Medidor de consumo by  doxygen 1.5.6