PSoC 6 Hardware Abstraction Layer (HAL)
ADC (Analog to Digital Converter)

General Description

High level interface for interacting with the Cypress ADC.

Each ADC instance supports one or more selectable channels, each of which can perform conversions on a different pin. See the device datasheet for details about which pins support ADC conversion.

In order to use the ADC, first call cyhal_adc_init to initialize an ADC instance. Then call cyhal_adc_channel_init to initialize one or more channels associated with that instance.

All channels are single-ended. The values returned by the read API are relative to the ADC's voltage range, which is device specific.

API Reference

 Common
 
 ADC Functions
 
 ADC Channel Functions