Azure Sphere MT3620 M4 API Reference Manual
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Enum

M-HAL ADC enumeration define list information, including define of the ADC one shot or periodic mode enumeration, define of the ADC finite state machine sampling times enumeration, define of the ADC operation mode enumeration(FIFO or DMA mode), define of the ADC channel number enumeration, define of the ADC interrupt enable enumeration. More...

Overview

M-HAL ADC enumeration define list information, including define of the ADC one shot or periodic mode enumeration, define of the ADC finite state machine sampling times enumeration, define of the ADC operation mode enumeration(FIFO or DMA mode), define of the ADC channel number enumeration, define of the ADC interrupt enable enumeration.

Enumerations

enum  adc_pmode {
  ADC_PMODE_ONE_TIME = 0,
  ADC_PMODE_PERIODIC
}
 This enum defines ADC one shot or periodic mode. More...
 
enum  adc_avg_mode {
  ADC_AVG_1_SAMPLE = 0,
  ADC_AVG_2_SAMPLE,
  ADC_AVG_4_SAMPLE,
  ADC_AVG_8_SAMPLE,
  ADC_AVG_16_SAMPLE,
  ADC_AVG_32_SAMPLE,
  ADC_AVG_64_SAMPLE
}
 This enum defines ADC finite state machine sampling times. More...
 
enum  adc_fifo_mode {
  ADC_FIFO_DIRECT = 0,
  ADC_FIFO_DMA
}
 This enum defines ADC operation mode: FIFO or DMA mode. More...
 
enum  adc_fifo_ier_mode {
  ADC_FIFO_IER_BOTH = 0,
  ADC_FIFO_IER_RXFULL,
  ADC_FIFO_IER_TIMEOUT
}
 This enum defines ADC interrupt enable. More...
 
enum  adc_channel_bit_map {
  ADC_BIT0 = 0x0001,
  ADC_BIT1 = 0x0002,
  ADC_BIT2 = 0x0004,
  ADC_BIT3 = 0x0008,
  ADC_BIT4 = 0x0010,
  ADC_BIT5 = 0x0020,
  ADC_BIT6 = 0x0040,
  ADC_BIT7 = 0x0080
}
 This enum defines ADC channel bit map. More...
 
enum  adc_channel {
  ADC_CHANNEL_0 = 0,
  ADC_CHANNEL_1 = 1,
  ADC_CHANNEL_2 = 2,
  ADC_CHANNEL_3 = 3,
  ADC_CHANNEL_4 = 4,
  ADC_CHANNEL_5 = 5,
  ADC_CHANNEL_6 = 6,
  ADC_CHANNEL_7 = 7,
  ADC_CHANNEL_MAX
}
 This enum defines ADC channel number. More...
 

Enumeration Type Documentation

enum adc_pmode

This enum defines ADC one shot or periodic mode.

Enumerator
ADC_PMODE_ONE_TIME 

ADC one shot mode.

ADC_PMODE_PERIODIC 

ADC periodic mode.

This enum defines ADC finite state machine sampling times.

Enumerator
ADC_AVG_1_SAMPLE 

ADC state machine samples 1 time.

ADC_AVG_2_SAMPLE 

ADC state machine samples 2 times.

ADC_AVG_4_SAMPLE 

ADC state machine samples 4 times.

ADC_AVG_8_SAMPLE 

ADC state machine samples 8 times.

ADC_AVG_16_SAMPLE 

ADC state machine samples 16 times.

ADC_AVG_32_SAMPLE 

ADC state machine samples 32 times.

ADC_AVG_64_SAMPLE 

ADC state machine samples 64 times.

This enum defines ADC operation mode: FIFO or DMA mode.

Enumerator
ADC_FIFO_DIRECT 

ADC FIFO sample.

ADC_FIFO_DMA 

ADC DMA sample.

This enum defines ADC interrupt enable.

Enumerator
ADC_FIFO_IER_BOTH 

ADC rxfull and timeout interrupt enable.

ADC_FIFO_IER_RXFULL 

ADC rxfull interrupt enable.

ADC_FIFO_IER_TIMEOUT 

ADC timeout interrupt enable.

This enum defines ADC channel bit map.

Enumerator
ADC_BIT0 

ADC channel0 bit map.

ADC_BIT1 

ADC channel1 bit map.

ADC_BIT2 

ADC channel2 bit map.

ADC_BIT3 

ADC channel3 bit map.

ADC_BIT4 

ADC channel4 bit map.

ADC_BIT5 

ADC channel5 bit map.

ADC_BIT6 

ADC channel6 bit map.

ADC_BIT7 

ADC channel7 bit map.

This enum defines ADC channel number.

Enumerator
ADC_CHANNEL_0 

ADC channel 0.

ADC_CHANNEL_1 

ADC channel 1.

ADC_CHANNEL_2 

ADC channel 2.

ADC_CHANNEL_3 

ADC channel 3.

ADC_CHANNEL_4 

ADC channel 4.

ADC_CHANNEL_5 

ADC channel 5.

ADC_CHANNEL_6 

ADC channel 6.

ADC_CHANNEL_7 

ADC channel 7.

ADC_CHANNEL_MAX 

ADC max channel(invalid)