MT2523 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_7 = 7,
  HAL_ADC_CHANNEL_8 = 8,
  HAL_ADC_CHANNEL_11 = 11,
  HAL_ADC_CHANNEL_12 = 12,
  HAL_ADC_CHANNEL_13 = 13,
  HAL_ADC_CHANNEL_14 = 14,
  HAL_ADC_CHANNEL_15 = 15,
  HAL_ADC_CHANNEL_MAX
}
 ADC channel. More...
 

Enumeration Type Documentation

ADC channel.

Enumerator
HAL_ADC_CHANNEL_7 

ADC channel 7.

HAL_ADC_CHANNEL_8 

ADC channel 8.

HAL_ADC_CHANNEL_11 

ADC channel 11.

HAL_ADC_CHANNEL_12 

ADC channel 12.

HAL_ADC_CHANNEL_13 

ADC channel 13.

HAL_ADC_CHANNEL_14 

ADC channel 14.

HAL_ADC_CHANNEL_15 

ADC channel 15.

HAL_ADC_CHANNEL_MAX 

The total number of ADC channels (invalid ADC channel).

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.