MT7697 API Reference  LinkIt SDK v4
Enum
HAL » ADC

Overview

Enumerations

enum  hal_adc_status_t {
  HAL_ADC_STATUS_INVALID_PARAMETER = -4,
  HAL_ADC_STATUS_ERROR_BUSY = -3,
  HAL_ADC_STATUS_ERROR_CHANNEL = -2,
  HAL_ADC_STATUS_ERROR = -1,
  HAL_ADC_STATUS_OK = 0
}
 This enum defines the ADC API return status. More...
 
enum  hal_adc_channel_t {
  HAL_ADC_CHANNEL_0 = 0,
  HAL_ADC_CHANNEL_1 = 1,
  HAL_ADC_CHANNEL_2 = 2,
  HAL_ADC_CHANNEL_3 = 3,
  HAL_ADC_CHANNEL_MAX
}
 adc channel More...
 

Enumeration Type Documentation

adc channel

Enumerator
HAL_ADC_CHANNEL_0 

ADC channel 0.

HAL_ADC_CHANNEL_1 

ADC channel 1.

HAL_ADC_CHANNEL_2 

ADC channel 2.

HAL_ADC_CHANNEL_3 

ADC channel 3.

HAL_ADC_CHANNEL_MAX 

ADC max channel <invalid>

This enum defines the ADC API return status.

Enumerator
HAL_ADC_STATUS_INVALID_PARAMETER 

Invalid parameter.

HAL_ADC_STATUS_ERROR_BUSY 

ADC is busy.

HAL_ADC_STATUS_ERROR_CHANNEL 

ADC channel number error.

HAL_ADC_STATUS_ERROR 

ADC error.

HAL_ADC_STATUS_OK 

ADC ok.