Main Page | File List | Globals | Related Pages

adc.c File Reference

Module to simulate the AVR's ADC module. More...

Go to the source code of this file.

Functions

ADCIntr_T * adc_intr_new (uint8_t uier)
void adc_intr_construct (ADCIntr_T *adc, uint8_t uier)
void adc_intr_destroy (void *adc)
ADC_T * adc_new (uint8_t uier)
void adc_construct (ADC_T *adc, uint8_t uier)
void adc_destroy (void *adc)
uint16_t adc_port_rd (uint8_t mux)
void adc_port_wr (uint8_t val)


Detailed Description

Module to simulate the AVR's ADC module.

Definition in file adc.c.


Function Documentation

ADCIntr_T* adc_intr_new uint8_t  uier  ) 
 

Allocate a new ADC interrupt.

Definition at line 77 of file adc.c.

References adc_intr_construct(), adc_intr_destroy(), avr_new, and class_overload_destroy().

Referenced by dev_supp_create_core().

void adc_intr_construct ADCIntr_T *  adc,
uint8_t  uier
 

Constructor for adc interrupt object.

Definition at line 91 of file adc.c.

References avr_error, and vdev_construct().

Referenced by adc_intr_new().

void adc_intr_destroy void *  adc  ) 
 

Destructor for adc interrupt object.

Definition at line 113 of file adc.c.

References vdev_destroy().

Referenced by adc_intr_new().

ADC_T* adc_new uint8_t  uier  ) 
 

Allocate a new ADC structure.

Definition at line 278 of file adc.c.

References adc_construct(), adc_destroy(), avr_new, and class_overload_destroy().

Referenced by dev_supp_create_core().

void adc_construct ADC_T *  adc,
uint8_t  uier
 

Constructor for ADC object.

Definition at line 292 of file adc.c.

References avr_error, and vdev_construct().

Referenced by adc_new().

void adc_destroy void *  adc  ) 
 

Destructor for ADC object.

Definition at line 313 of file adc.c.

References vdev_destroy().

Referenced by adc_new().


Automatically generated by Doxygen 1.3.8 on 11 Aug 2004.