Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Header: #include <applibs/adc.h>
Gets the bit depth of the ADC.
int ADC_GetSampleBitCount(int fd, ADC_ChannelId channel);
Parameters
fdThe file descriptor for the ADC controller. The file descriptor is retrieved by ADC_Open.channelThe ID of the ADC channel to access. The range of allowed values is controller-dependent and is typically a zero-based index.
Return value
Returns the bit depth of the ADC. If an error is encountered, returns -1 and sets errno to the error value.
Remarks
An example return value is 12, which indicates that the ADC controller can supply 12 bits of data that range from 0 to 4095.
Application manifest requirements
To access an ADC controller, your application must identify it in the Adc field of the application manifest.