adc_avr.h File Reference
ADC hardware-specific definition. More...
#include <cfg/compiler.h>Go to the source code of this file.
Functions | |
| void | adc_hw_select_ch (uint8_t ch) |
| Select mux channel ch. | |
| uint16_t | adc_hw_read (void) |
| Start an ADC convertion. | |
| void | adc_hw_init (void) |
| Init ADC hardware. | |
Detailed Description
ADC hardware-specific definition.
Definition in file adc_avr.h.
Function Documentation
| uint16_t adc_hw_read | ( | void | ) |
Start an ADC convertion.
If a kernel is present, preempt until convertion is complete, otherwise a busy wait on ADC_DRDY bit is done.
If a kernel is present, preempt until convertion is complete, otherwise a busy wait on ADCS bit is done.
Definition at line 131 of file adc_at91.c.
| void adc_hw_select_ch | ( | uint8_t | ch | ) |
Select mux channel ch.
Definition at line 117 of file adc_at91.c.
