Keith Koep
TECHNOLOGY PARTNER
ARM CONNECTED Windows Freescale Marvell


ADC_Read

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
); 

Parameters

ADChannel
one of 4 ADChannel ( 0..3)

Return Values

If the function succeeds, the returned value is the wanted analog voltage.

If the function fails, the return value is -1.

Remarks

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.

Requirements

OS Versions: Windows CE 4.2 and later.
Header: drvlib_app.h.
Link Library: drvlib_app.lib.

See Also

(C) 2013 Keith & Koep GmbH. Alle Rechte vorbehalten. Nutzungsbedingungen
(C) 2013 Keith & Koep GmbH. All rights reserved. Terms of Use