ADC_Initialize
Default mainpageat91libperipheralsadcADC_Initialize
Description Source Call Graph
ADC_Initialize
Initialize the ADC controller.
 
Syntax / parameters
void ADC_Initialize (AT91S_ADC *pAdc, unsigned char idAdc, unsigned char trgEn, unsigned char trgSel, unsigned char sleepMode, unsigned char resolution, unsigned int mckClock, unsigned int adcClock, unsigned int startupTime, unsigned int sampleAndHoldTime)

Name Type Default Description
pAdc AT91S_ADC *
  Pointer to an AT91S_ADC instance.
idAdc unsigned char
   
trgEn unsigned char
  trigger mode, software or Hardware
trgSel unsigned char
  hardware trigger selection
sleepMode unsigned char
  sleep mode selection
resolution unsigned char
  resolution selection 8 bits or 10 bits
mckClock unsigned int
  value of MCK in Hz
adcClock unsigned int
  value of the ADC clock in Hz
startupTime unsigned int
  value of the start up time (in µs) (see datasheet)
sampleAndHoldTime unsigned int
  (in ns)
Description
Initialize the ADC controller.

 
Source
The documentation for this Member was generated from the following files:
  • adc.c