|
rusEFI
The most advanced open source ECU
|
Typedefs | |
| typedef uint16_t | adcsample_t |
| ADC sample data type. | |
| typedef uint16_t | adc_channels_num_t |
| Channels number in a conversion group. | |
| typedef void(* | adcerrorcallback_t) (ADCDriver *adcp, adcerror_t err) |
| ADC error callback type. | |
Enumerations | |
| enum | adcerror_t { ADC_ERR_DMAFAILURE = 0 , ADC_ERR_OVERFLOW = 1 } |
| Possible ADC failure causes. More... | |
Functions | |
| static void | calibrate (ADCDriver *adcp) |
| static void | adc_lld_irq_handler (ADCDriver *adcp) |
| ADC interrupt handler. | |
| OSAL_IRQ_HANDLER (KINETIS_ADC0_IRQ_VECTOR) | |
| OSAL_IRQ_HANDLER (KINETIS_ADC1_IRQ_VECTOR) | |
| OSAL_IRQ_HANDLER (KINETIS_ADC2_IRQ_VECTOR) | |
| void | adc_lld_init (void) |
| Low level ADC driver initialization. | |
| void | adc_lld_start (ADCDriver *adcp) |
| Configures and activates the ADC peripheral. | |
| void | adc_lld_stop (ADCDriver *adcp) |
| Deactivates the ADC peripheral. | |
| void | adc_lld_start_conversion (ADCDriver *adcp) |
| Starts an ADC conversion. | |
| void | adc_lld_stop_conversion (ADCDriver *adcp) |
| Stops an ongoing conversion. | |
Variables | |
| ADCDriver | ADCD1 |
| ADC1 driver identifier. | |
| ADCDriver | ADCD2 |
| ADC2 driver identifier. | |
| ADCDriver | ADCD3 |
| ADC3 driver identifier. | |
| uint32_t | channel_mask |
| Bitmask of channels for ADC conversion. | |
| uint32_t | cfg1 |
| ADC CFG1 register initialization data. | |
| uint32_t | sc3 |
| ADC SC3 register initialization data. | |
| ADCDriver | ADCD1 |
| ADC1 driver identifier. | |
| ADCDriver | ADCD2 |
| ADC2 driver identifier. | |
| ADCDriver | ADCD3 |
| ADC3 driver identifier. | |
| typedef uint16_t adc_channels_num_t |
Channels number in a conversion group.
Definition at line 195 of file hal_adc_lld.h.
| typedef void(* adcerrorcallback_t) (ADCDriver *adcp, adcerror_t err) |
ADC error callback type.
| [in] | adcp | pointer to the ADCDriver object triggering the callback |
| [in] | err | ADC error code |
Definition at line 214 of file hal_adc_lld.h.
| typedef uint16_t adcsample_t |
ADC sample data type.
Definition at line 190 of file hal_adc_lld.h.
| enum adcerror_t |
Possible ADC failure causes.
| Enumerator | |
|---|---|
| ADC_ERR_DMAFAILURE | DMA operations failure. |
| ADC_ERR_OVERFLOW | ADC overflow condition. |
Definition at line 202 of file hal_adc_lld.h.
| void adc_lld_init | ( | void | ) |
Low level ADC driver initialization.
@notapi
Definition at line 195 of file hal_adc_lld.c.
|
static |
ADC interrupt handler.
@isr
Definition at line 106 of file hal_adc_lld.c.
Referenced by OSAL_IRQ_HANDLER(), OSAL_IRQ_HANDLER(), and OSAL_IRQ_HANDLER().


| void adc_lld_start | ( | ADCDriver * | adcp | ) |
Configures and activates the ADC peripheral.
| [in] | adcp | pointer to the ADCDriver object |
@notapi
Definition at line 230 of file hal_adc_lld.c.

| void adc_lld_start_conversion | ( | ADCDriver * | adcp | ) |
Starts an ADC conversion.
| [in] | adcp | pointer to the ADCDriver object |
@notapi
Definition at line 309 of file hal_adc_lld.c.

| void adc_lld_stop | ( | ADCDriver * | adcp | ) |
Deactivates the ADC peripheral.
| [in] | adcp | pointer to the ADCDriver object |
@notapi
Definition at line 288 of file hal_adc_lld.c.

| void adc_lld_stop_conversion | ( | ADCDriver * | adcp | ) |
Stops an ongoing conversion.
| [in] | adcp | pointer to the ADCDriver object |
@notapi
Definition at line 375 of file hal_adc_lld.c.
|
static |
Definition at line 65 of file hal_adc_lld.c.
Referenced by adc_lld_start().


| OSAL_IRQ_HANDLER | ( | KINETIS_ADC0_IRQ_VECTOR | ) |
Definition at line 163 of file hal_adc_lld.c.

| OSAL_IRQ_HANDLER | ( | KINETIS_ADC1_IRQ_VECTOR | ) |
| OSAL_IRQ_HANDLER | ( | KINETIS_ADC2_IRQ_VECTOR | ) |
| ADCDriver ADCD1 |
ADC1 driver identifier.
Definition at line 44 of file hal_adc_lld.c.
Referenced by adc_lld_init(), adc_lld_start(), getMcuTemperature(), OSAL_IRQ_HANDLER(), portInitAdc(), readBatch(), and readSlowAnalogInputs().
|
extern |
ADC1 driver identifier.
Definition at line 44 of file hal_adc_lld.c.
Referenced by adc_lld_init(), adc_lld_start(), getMcuTemperature(), OSAL_IRQ_HANDLER(), portInitAdc(), readBatch(), and readSlowAnalogInputs().
| ADCDriver ADCD2 |
ADC2 driver identifier.
Definition at line 49 of file hal_adc_lld.c.
Referenced by adc_lld_init(), adc_lld_start(), OSAL_IRQ_HANDLER(), and portInitAdc().
|
extern |
ADC2 driver identifier.
Definition at line 49 of file hal_adc_lld.c.
Referenced by adc_lld_init(), adc_lld_start(), OSAL_IRQ_HANDLER(), and portInitAdc().
| ADCDriver ADCD3 |
ADC3 driver identifier.
Definition at line 54 of file hal_adc_lld.c.
Referenced by adc_lld_init(), adc_lld_start(), initTriggerScope(), OSAL_IRQ_HANDLER(), and portInitAdc().
|
extern |
ADC3 driver identifier.
Definition at line 54 of file hal_adc_lld.c.
Referenced by adc_lld_init(), adc_lld_start(), initTriggerScope(), OSAL_IRQ_HANDLER(), and portInitAdc().
| uint32_t cfg1 |
ADC CFG1 register initialization data.
Definition at line 264 of file hal_adc_lld.h.
| uint32_t channel_mask |
Bitmask of channels for ADC conversion.
Definition at line 259 of file hal_adc_lld.h.
| uint32_t sc3 |
ADC SC3 register initialization data.
Definition at line 269 of file hal_adc_lld.h.