rusEFI
The most advanced open source ECU
|
Data Structures | |
struct | _adc12_config |
Converter configuration. More... | |
struct | _adc12_hardware_compare_config |
Hardware compare configuration. More... | |
struct | _adc12_channel_config |
Channel conversion configuration. More... | |
Typedefs | |
typedef enum _adc12_clock_divider | adc12_clock_divider_t |
Clock divider for the converter. | |
typedef enum _adc12_resolution | adc12_resolution_t |
Converter's resolution. | |
typedef enum _adc12_clock_source | adc12_clock_source_t |
Conversion clock source. | |
typedef enum _adc12_reference_voltage_source | adc12_reference_voltage_source_t |
Reference voltage source. | |
typedef enum _adc12_hardware_average_mode | adc12_hardware_average_mode_t |
Hardware average mode. | |
typedef enum _adc12_hardware_compare_mode | adc12_hardware_compare_mode_t |
Hardware compare mode. | |
typedef struct _adc12_config | adc12_config_t |
Converter configuration. | |
typedef struct _adc12_hardware_compare_config | adc12_hardware_compare_config_t |
Hardware compare configuration. | |
typedef struct _adc12_channel_config | adc12_channel_config_t |
Channel conversion configuration. | |
Functions | |
Initialization | |
void | ADC12_Init (ADC_Type *base, const adc12_config_t *config) |
Initialize the ADC12 module. | |
void | ADC12_Deinit (ADC_Type *base) |
De-initialize the ADC12 module. | |
void | ADC12_GetDefaultConfig (adc12_config_t *config) |
Gets an available pre-defined settings for converter's configuration. | |
Basic Operations | |
void | ADC12_SetChannelConfig (ADC_Type *base, uint32_t channelGroup, const adc12_channel_config_t *config) |
Configure the conversion channel. | |
static uint32_t | ADC12_GetChannelConversionValue (ADC_Type *base, uint32_t channelGroup) |
Get the conversion value. | |
uint32_t | ADC12_GetChannelStatusFlags (ADC_Type *base, uint32_t channelGroup) |
Get the status flags of channel. | |
Advanced Operations | |
status_t | ADC12_DoAutoCalibration (ADC_Type *base) |
Automate the hardware calibration. | |
static void | ADC12_SetOffsetValue (ADC_Type *base, uint32_t value) |
Set the offset value for the conversion result. | |
static void | ADC12_SetGainValue (ADC_Type *base, uint32_t value) |
Set the gain value for the conversion result. | |
static void | ADC12_EnableDMA (ADC_Type *base, bool enable) |
Enable generating the DMA trigger when conversion is completed. | |
static void | ADC12_EnableHardwareTrigger (ADC_Type *base, bool enable) |
Enable of disable the hardware trigger mode. | |
void | ADC12_SetHardwareCompareConfig (ADC_Type *base, const adc12_hardware_compare_config_t *config) |
Configure the hardware compare mode. | |
void | ADC12_SetHardwareAverage (ADC_Type *base, adc12_hardware_average_mode_t mode) |
Set the hardware average mode. | |
uint32_t | ADC12_GetStatusFlags (ADC_Type *base) |
Get the status flags of the converter. | |