ADC_InjectionConfTypeDef结构体内容
时间: 2023-07-08 08:19:58 浏览: 231
ADC_InjectionConfTypeDef是用于配置ADC注入通道的结构体,其内容如下:
```c
typedef struct
{
uint32_t InjectedMode; // ADC injected conversion mode
uint32_t AutoInjectedConv; // ADC auto injected conversion
uint32_t InjectedDiscontinuousConvMode;// ADC injected discontinuous mode
uint32_t ExternalTrigInjecConv; // ADC external trigger for injected conversion
uint32_t ExternalTrigInjecConvEdge; // ADC external trigger edge for injected conversion
uint32_t InjecOversamplingMode; // ADC injected oversampling mode
uint32_t InjecScanMode; // ADC scan mode for injected conversions
uint32_t QueueInjectedContext; // ADC context queue mode for injected conversions
uint32_t Reserved; // Reserved parameter
} ADC_InjectionConfTypeDef;
```
各个成员的含义如下:
- InjectedMode:注入模式,可选值为ADC_INJECTED_SINGLE_CONVERSION或ADC_INJECTED_SCAN_CONVERSION。
- AutoInjectedConv:自动注入模式,可选值为ENABLE或DISABLE。
- InjectedDiscontinuousConvMode:注入间断模式,可选值为ENABLE或DISABLE。
- ExternalTrigInjecConv:注入触发源,可选值为外部触发源的枚举值。
- ExternalTrigInjecConvEdge:注入触发边沿,可选值为外部触发边沿的枚举值。
- InjecOversamplingMode:注入过采样模式,可选值为ADC_OVERSAMPLING_MODE_DISABLED、ADC_OVERSAMPLING_MODE_2_SAMPLES、ADC_OVERSAMPLING_MODE_4_SAMPLES、ADC_OVERSAMPLING_MODE_8_SAMPLES、ADC_OVERSAMPLING_MODE_16_SAMPLES、ADC_OVERSAMPLING_MODE_32_SAMPLES、ADC_OVERSAMPLING_MODE_64_SAMPLES、ADC_OVERSAMPLING_MODE_128_SAMPLES或ADC_OVERSAMPLING_MODE_256_SAMPLES。
- InjecScanMode:注入扫描模式,可选值为ENABLE或DISABLE。
- QueueInjectedContext:注入上下文队列模式,可选值为ENABLE或DISABLE。
- Reserved:保留参数。
阅读全文