ADC初始化结构体句柄,初始化时请定义该句柄,并用其地址来传参。 更多...
#include <STC8x_ADC.h>
成员变量 | |
BOOL | Power |
uint8_t | Channel |
uint8_t | Speed |
ADCAlign_Type | Align |
BOOL | Run |
ADC初始化结构体句柄,初始化时请定义该句柄,并用其地址来传参。
The ADC initializes the structure handle. When initializing, please define the handle and use its address to pass parameters.
ADCAlign_Type Align |
ADC采样结果对齐方式。ADC data format alignment.
uint8_t Channel |
ADC采集通道选择。ADC channel selection.
BOOL Power |
ADC电源控制位。 ADC power control bit.
BOOL Run |
ADC运行控制位。ADC conversion operation control bit.
uint8_t Speed |
ADC采集速度,最大速度0x0F,如果大于这个值,将初始化失败。 he maximum ADC conversion speed (working clock frequency) is 0x0F.