Main Page | File List | Globals | Related Pages

timers.c File Reference

Module to simulate the AVR's on-board timer/counters. More...

Go to the source code of this file.

16 Bit Timer Functions

Timer16_T * timer16_new (Timer16Def timerdef)
void timer16_construct (Timer16_T *timer, Timer16Def timerdef)

16 Bit Output Compare Register Functions

OCReg16_T * ocreg16_new (OCReg16Def ocrdef)
void ocreg16_construct (OCReg16_T *ocreg, OCReg16Def ocrdef)

Functions

TimerIntr_T * timer_intr_new (uint8_t func_mask)
void timer_intr_construct (TimerIntr_T *ti, uint8_t func_mask)
void timer_intr_destroy (void *ti)
Timer0_T * timer0_new (void)
void timer0_construct (Timer0_T *timer)
void timer0_destroy (void *timer)


Detailed Description

Module to simulate the AVR's on-board timer/counters.

This currently only implements the timer/counter 0.

Definition in file timers.c.


Function Documentation

TimerIntr_T* timer_intr_new uint8_t  func_mask  ) 
 

Allocate a new timer interrupt.

Definition at line 127 of file timers.c.

References avr_new, class_overload_destroy(), timer_intr_construct(), and timer_intr_destroy().

Referenced by dev_supp_create_core().

void timer_intr_construct TimerIntr_T *  ti,
uint8_t  func_mask
 

Constructor for timer interrupt object.

Definition at line 141 of file timers.c.

References avr_error, and vdev_construct().

Referenced by timer_intr_new().

void timer_intr_destroy void *  ti  ) 
 

Destructor for timer interrupt object.

Definition at line 160 of file timers.c.

References vdev_destroy().

Referenced by timer_intr_new().

Timer0_T* timer0_new void   ) 
 

Allocate a new timer/counter 0.

Definition at line 312 of file timers.c.

References avr_new, class_overload_destroy(), timer0_construct(), and timer0_destroy().

Referenced by dev_supp_create_core().

void timer0_construct Timer0_T *  timer  ) 
 

Constructor for timer/counter 0 object.

Definition at line 326 of file timers.c.

References avr_error, and vdev_construct().

Referenced by timer0_new().

void timer0_destroy void *  timer  ) 
 

Destructor for timer/counter 0 object.

Definition at line 342 of file timers.c.

References vdev_destroy().

Referenced by timer0_new().

Timer16_T* timer16_new Timer16Def  timerdef  ) 
 

Allocate a new 16 bit timer/counter.

Definition at line 526 of file timers.c.

References avr_new, class_overload_destroy(), and timer16_construct().

Referenced by dev_supp_create_core().

void timer16_construct Timer16_T *  timer,
Timer16Def  timerdef
 

Constructor for 16 bit timer/counter object.

Definition at line 540 of file timers.c.

References avr_error, and vdev_construct().

Referenced by timer16_new().

OCReg16_T* ocreg16_new OCReg16Def  ocrdef  ) 
 

Allocate a new 16 bit Output Compare Register.

Parameters:
ocrdef The definition struct for the OCR to be created
Definition at line 791 of file timers.c.

References avr_new, class_overload_destroy(), and ocreg16_construct().

Referenced by dev_supp_create_core().

void ocreg16_construct OCReg16_T *  ocreg,
OCReg16Def  ocrdef
 

Constructor for 16 bit Output Compare Register object.

Definition at line 805 of file timers.c.

References avr_error, and vdev_construct().

Referenced by ocreg16_new().


Automatically generated by Doxygen 1.3.8 on 11 Aug 2004.