STM8S/A Standard Peripherals Drivers: ADC2_Exported_Types

STM8S/A

STM8S/A Standard Peripherals Drivers
ADC2_Exported_Types

Enumerations

enum  ADC2_Align_TypeDef { ADC2_ALIGN_LEFT = (uint8_t)0x00, ADC2_ALIGN_RIGHT = (uint8_t)0x08 }
 ADC2 data alignment. More...
enum  ADC2_Channel_TypeDef {
  ADC2_CHANNEL_0 = (uint8_t)0x00, ADC2_CHANNEL_1 = (uint8_t)0x01, ADC2_CHANNEL_2 = (uint8_t)0x02, ADC2_CHANNEL_3 = (uint8_t)0x03,
  ADC2_CHANNEL_4 = (uint8_t)0x04, ADC2_CHANNEL_5 = (uint8_t)0x05, ADC2_CHANNEL_6 = (uint8_t)0x06, ADC2_CHANNEL_7 = (uint8_t)0x07,
  ADC2_CHANNEL_8 = (uint8_t)0x08, ADC2_CHANNEL_9 = (uint8_t)0x09, ADC2_CHANNEL_10 = (uint8_t)0x0A, ADC2_CHANNEL_11 = (uint8_t)0x0B,
  ADC2_CHANNEL_12 = (uint8_t)0x0C, ADC2_CHANNEL_13 = (uint8_t)0x0D, ADC2_CHANNEL_14 = (uint8_t)0x0E, ADC2_CHANNEL_15 = (uint8_t)0x0F
}
 ADC2 analog channel selection. More...
enum  ADC2_ConvMode_TypeDef { ADC2_CONVERSIONMODE_SINGLE = (uint8_t)0x00, ADC2_CONVERSIONMODE_CONTINUOUS = (uint8_t)0x01 }
 ADC2 conversion mode selection. More...
enum  ADC2_ExtTrig_TypeDef { ADC2_EXTTRIG_TIM = (uint8_t)0x00, ADC2_EXTTRIG_GPIO = (uint8_t)0x01 }
 ADC2 External conversion trigger event selection. More...
enum  ADC2_PresSel_TypeDef {
  ADC2_PRESSEL_FCPU_D2 = (uint8_t)0x00, ADC2_PRESSEL_FCPU_D3 = (uint8_t)0x10, ADC2_PRESSEL_FCPU_D4 = (uint8_t)0x20, ADC2_PRESSEL_FCPU_D6 = (uint8_t)0x30,
  ADC2_PRESSEL_FCPU_D8 = (uint8_t)0x40, ADC2_PRESSEL_FCPU_D10 = (uint8_t)0x50, ADC2_PRESSEL_FCPU_D12 = (uint8_t)0x60, ADC2_PRESSEL_FCPU_D18 = (uint8_t)0x70
}
 ADC2 clock prescaler selection. More...
enum  ADC2_SchmittTrigg_TypeDef {
  ADC2_SCHMITTTRIG_CHANNEL0 = (uint8_t)0x00, ADC2_SCHMITTTRIG_CHANNEL1 = (uint8_t)0x01, ADC2_SCHMITTTRIG_CHANNEL2 = (uint8_t)0x02, ADC2_SCHMITTTRIG_CHANNEL3 = (uint8_t)0x03,
  ADC2_SCHMITTTRIG_CHANNEL4 = (uint8_t)0x04, ADC2_SCHMITTTRIG_CHANNEL5 = (uint8_t)0x05, ADC2_SCHMITTTRIG_CHANNEL6 = (uint8_t)0x06, ADC2_SCHMITTTRIG_CHANNEL7 = (uint8_t)0x07,
  ADC2_SCHMITTTRIG_CHANNEL8 = (uint8_t)0x08, ADC2_SCHMITTTRIG_CHANNEL9 = (uint8_t)0x09, ADC2_SCHMITTTRIG_CHANNEL10 = (uint8_t)0x0A, ADC2_SCHMITTTRIG_CHANNEL11 = (uint8_t)0x0B,
  ADC2_SCHMITTTRIG_CHANNEL12 = (uint8_t)0x0C, ADC2_SCHMITTTRIG_CHANNEL13 = (uint8_t)0x0D, ADC2_SCHMITTTRIG_CHANNEL14 = (uint8_t)0x0E, ADC2_SCHMITTTRIG_CHANNEL15 = (uint8_t)0x0F,
  ADC2_SCHMITTTRIG_ALL = (uint8_t)0x1F
}
 ADC2 schmitt Trigger. More...

Enumeration Type Documentation

ADC2 data alignment.

Enumerator:
ADC2_ALIGN_LEFT 

Data alignment left.

ADC2_ALIGN_RIGHT 

Data alignment right.

Definition at line 68 of file stm8s_adc2.h.

ADC2 analog channel selection.

Enumerator:
ADC2_CHANNEL_0 

Analog channel 0.

ADC2_CHANNEL_1 

Analog channel 1.

ADC2_CHANNEL_2 

Analog channel 2.

ADC2_CHANNEL_3 

Analog channel 3.

ADC2_CHANNEL_4 

Analog channel 4.

ADC2_CHANNEL_5 

Analog channel 5.

ADC2_CHANNEL_6 

Analog channel 6.

ADC2_CHANNEL_7 

Analog channel 7.

ADC2_CHANNEL_8 

Analog channel 8.

ADC2_CHANNEL_9 

Analog channel 9.

ADC2_CHANNEL_10 

Analog channel 10.

ADC2_CHANNEL_11 

Analog channel 11.

ADC2_CHANNEL_12 

Analog channel 12.

ADC2_CHANNEL_13 

Analog channel 13.

ADC2_CHANNEL_14 

Analog channel 14.

ADC2_CHANNEL_15 

Analog channel 15.

Definition at line 110 of file stm8s_adc2.h.

ADC2 conversion mode selection.

Enumerator:
ADC2_CONVERSIONMODE_SINGLE 

Single conversion mode.

ADC2_CONVERSIONMODE_CONTINUOUS 

Continuous conversion mode.

Definition at line 101 of file stm8s_adc2.h.

ADC2 External conversion trigger event selection.

Enumerator:
ADC2_EXTTRIG_TIM 

Conversion from Internal TIM TRGO event.

ADC2_EXTTRIG_GPIO 

Conversion from External interrupt on ADC_ETR pin.

Definition at line 60 of file stm8s_adc2.h.

ADC2 clock prescaler selection.

Enumerator:
ADC2_PRESSEL_FCPU_D2 

Prescaler selection fADC2 = fcpu/2.

ADC2_PRESSEL_FCPU_D3 

Prescaler selection fADC2 = fcpu/3.

ADC2_PRESSEL_FCPU_D4 

Prescaler selection fADC2 = fcpu/4.

ADC2_PRESSEL_FCPU_D6 

Prescaler selection fADC2 = fcpu/6.

ADC2_PRESSEL_FCPU_D8 

Prescaler selection fADC2 = fcpu/8.

ADC2_PRESSEL_FCPU_D10 

Prescaler selection fADC2 = fcpu/10.

ADC2_PRESSEL_FCPU_D12 

Prescaler selection fADC2 = fcpu/12.

ADC2_PRESSEL_FCPU_D18 

Prescaler selection fADC2 = fcpu/18.

Definition at line 46 of file stm8s_adc2.h.

ADC2 schmitt Trigger.

Enumerator:
ADC2_SCHMITTTRIG_CHANNEL0 

Schmitt trigger disable on AIN0.

ADC2_SCHMITTTRIG_CHANNEL1 

Schmitt trigger disable on AIN1.

ADC2_SCHMITTTRIG_CHANNEL2 

Schmitt trigger disable on AIN2.

ADC2_SCHMITTTRIG_CHANNEL3 

Schmitt trigger disable on AIN3.

ADC2_SCHMITTTRIG_CHANNEL4 

Schmitt trigger disable on AIN4.

ADC2_SCHMITTTRIG_CHANNEL5 

Schmitt trigger disable on AIN5.

ADC2_SCHMITTTRIG_CHANNEL6 

Schmitt trigger disable on AIN6.

ADC2_SCHMITTTRIG_CHANNEL7 

Schmitt trigger disable on AIN7.

ADC2_SCHMITTTRIG_CHANNEL8 

Schmitt trigger disable on AIN8.

ADC2_SCHMITTTRIG_CHANNEL9 

Schmitt trigger disable on AIN9.

ADC2_SCHMITTTRIG_CHANNEL10 

Schmitt trigger disable on AIN10.

ADC2_SCHMITTTRIG_CHANNEL11 

Schmitt trigger disable on AIN11.

ADC2_SCHMITTTRIG_CHANNEL12 

Schmitt trigger disable on AIN12.

ADC2_SCHMITTTRIG_CHANNEL13 

Schmitt trigger disable on AIN13.

ADC2_SCHMITTTRIG_CHANNEL14 

Schmitt trigger disable on AIN14.

ADC2_SCHMITTTRIG_CHANNEL15 

Schmitt trigger disable on AIN15.

ADC2_SCHMITTTRIG_ALL 

Schmitt trigger disable on all channels.

Definition at line 76 of file stm8s_adc2.h.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com