rusEFI
The most advanced open source ECU
|
Functions | |
static uint32_t | ADC12_GetInstance (ADC_Type *base) |
Get instance number for ADC12 module. | |
static status_t | ADC12_GetCalibrationStatus (ADC_Type *base) |
Check calibration failed status. | |
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. | |
void | ADC12_SetChannelConfig (ADC_Type *base, uint32_t channelGroup, const adc12_channel_config_t *config) |
Configure the conversion channel. | |
uint32_t | ADC12_GetChannelStatusFlags (ADC_Type *base, uint32_t channelGroup) |
Get the status flags of channel. | |
status_t | ADC12_DoAutoCalibration (ADC_Type *base) |
Automate the hardware calibration. | |
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. | |
Variables | |
static ADC_Type *const | s_adc12Bases [] = ADC_BASE_PTRS |
Pointers to ADC12 bases for each instance. | |
static const clock_ip_name_t | s_adc12Clocks [] = ADC12_CLOCKS |
Pointers to ADC12 clocks for each instance. | |
|
static |
Check calibration failed status.
Check if the calibration is failed by comparing the calibration result value with its limit range.
base | ADC12 peripheral base address. |
kStatus_Success | Calibration is done successfully. |
kStatus_Fail | Calibration is failed. |
Definition at line 92 of file fsl_adc12.c.
Referenced by ADC12_GetStatusFlags().
|
static |
Get instance number for ADC12 module.
base | ADC12 peripheral base address |
Definition at line 74 of file fsl_adc12.c.
Referenced by ADC12_Deinit(), and ADC12_Init().
|
static |
Pointers to ADC12 bases for each instance.
Definition at line 65 of file fsl_adc12.c.
Referenced by ADC12_GetInstance().
|
static |
Pointers to ADC12 clocks for each instance.
Definition at line 68 of file fsl_adc12.c.
Referenced by ADC12_Deinit(), and ADC12_Init().