The function ADC_Read gets the measured analog voltage value from the UCB1400-codec for a given ADC-Channel.
unsigned short ADC_Read( unsigned short ADChannel ); unsigned short UcbReadADC( unsigned short ADChannel );
one of 4 ADChannel ( 0..3)
If the function succeeds, the returned value is the wanted analog voltage.
If the function fails, the return value is -1.
This function uses the AC97-Link functions. So you have to use AC97_Alloc before calling this function. Unlike the ADC_Sample - function this function cares about multiple-exclusive access to the AC97-Link itself. Note that you have to unlock the acces to the AC97-Link if you have gained access to it previously with a call to AC97_Lock.
OS Versions: Windows CE 4.2 and later.
Link Library: drvlib_app.lib.