rusEFI
The most advanced open source ECU
|
Data Structures | |
struct | COMPConfig |
Driver configuration structure. More... | |
struct | COMPDriver |
Structure representing an COMP driver. More... | |
Enumerations | |
enum | comp_output_mode_t { COMP_OUTPUT_NORMAL = 0 , COMP_OUTPUT_INVERTED = 1 } |
COMP output mode. More... | |
enum | comp_irq_mode_t { COMP_IRQ_RISING = kACMP_OutputRisingEventFlag , COMP_IRQ_FALLING = kACMP_OutputFallingEventFlag , COMP_IRQ_BOTH = (COMP_IRQ_RISING | COMP_IRQ_FALLING) } |
COMP interrupt mode. More... | |
Functions | |
void | comp_lld_init (void) |
Low level COMP driver initialization. | |
static void | comp_lld_irq_handler (COMPDriver *compp) |
OSAL_IRQ_HANDLER (KINETIS_COMP0_IRQ_VECTOR) | |
COMP1, COMP2, COMP3 interrupt handler. | |
OSAL_IRQ_HANDLER (KINETIS_COMP1_IRQ_VECTOR) | |
OSAL_IRQ_HANDLER (KINETIS_COMP2_IRQ_VECTOR) | |
void | comp_lld_channel_enable (COMPDriver *compp, uint32_t channel) |
Configures and activates an EXT channel (used by comp) | |
void | comp_lld_channel_disable (COMPDriver *compp, uint32_t channel) |
Deactivate an EXT channel (used by comp) | |
void | comp_lld_set_dac_value (COMPDriver *compp, uint32_t value) |
Set the DAC value used by comp. | |
void | comp_lld_start (COMPDriver *compp) |
Configures and activates the COMP peripheral. | |
void | comp_lld_stop (COMPDriver *compp) |
Deactivates the comp peripheral. | |
void | comp_lld_enable (COMPDriver *compp) |
Enables the output. | |
void | comp_lld_disable (COMPDriver *compp) |
Disables the output. | |
uint32_t | comp_lld_get_status (COMPDriver *compp) |
Variables | |
COMPDriver | COMPD1 |
COMPD1 driver identifier. | |
COMPDriver | COMPD2 |
COMPD2 driver identifier. | |
COMPDriver | COMPD3 |
COMPD3 driver identifier. | |
COMPDriver | COMPD1 |
COMPD1 driver identifier. | |
COMPDriver | COMPD2 |
COMPD2 driver identifier. | |
COMPDriver | COMPD3 |
COMPD3 driver identifier. | |
enum comp_irq_mode_t |
COMP interrupt mode.
Enumerator | |
---|---|
COMP_IRQ_RISING | |
COMP_IRQ_FALLING | |
COMP_IRQ_BOTH |
Definition at line 150 of file hal_comp_lld.h.
enum comp_output_mode_t |
COMP output mode.
Enumerator | |
---|---|
COMP_OUTPUT_NORMAL | |
COMP_OUTPUT_INVERTED |
Definition at line 142 of file hal_comp_lld.h.
void comp_lld_channel_disable | ( | COMPDriver * | compp, |
uint32_t | channel | ||
) |
Deactivate an EXT channel (used by comp)
[in] | compp | pointer to the COMPDriver object |
[in] | channel | EXT channel |
@notapi
Definition at line 178 of file hal_comp_lld.c.
void comp_lld_channel_enable | ( | COMPDriver * | compp, |
uint32_t | channel | ||
) |
Configures and activates an EXT channel (used by comp)
[in] | compp | pointer to the COMPDriver object |
[in] | channel | EXT channel (0..7) |
@notapi
Definition at line 160 of file hal_comp_lld.c.
Referenced by startTriggerInputPins().
void comp_lld_disable | ( | COMPDriver * | compp | ) |
Disables the output.
[in] | compp | pointer to the COMPDriver object |
@notapi
Definition at line 263 of file hal_comp_lld.c.
void comp_lld_enable | ( | COMPDriver * | compp | ) |
Enables the output.
[in] | compp | pointer to the COMPDriver object |
@notapi
Definition at line 243 of file hal_comp_lld.c.
uint32_t comp_lld_get_status | ( | COMPDriver * | compp | ) |
Definition at line 269 of file hal_comp_lld.c.
Referenced by comp_shaft_callback().
void comp_lld_init | ( | void | ) |
Low level COMP driver initialization.
@notapi
Definition at line 89 of file hal_comp_lld.c.
|
static |
Definition at line 112 of file hal_comp_lld.c.
Referenced by OSAL_IRQ_HANDLER(), OSAL_IRQ_HANDLER(), and OSAL_IRQ_HANDLER().
void comp_lld_set_dac_value | ( | COMPDriver * | compp, |
uint32_t | value | ||
) |
Set the DAC value used by comp.
[in] | compp | pointer to the COMPDriver object |
[in] | value | DAC value (0..255?) |
@notapi
Definition at line 190 of file hal_comp_lld.c.
Referenced by setHysteresis(), and startTriggerInputPins().
void comp_lld_start | ( | COMPDriver * | compp | ) |
Configures and activates the COMP peripheral.
[in] | compp | pointer to the COMPDriver object |
@notapi
Definition at line 202 of file hal_comp_lld.c.
void comp_lld_stop | ( | COMPDriver * | compp | ) |
Deactivates the comp peripheral.
[in] | compp | pointer to the COMPDriver object |
@notapi
Definition at line 232 of file hal_comp_lld.c.
OSAL_IRQ_HANDLER | ( | KINETIS_COMP0_IRQ_VECTOR | ) |
COMP1, COMP2, COMP3 interrupt handler.
@isr
Definition at line 129 of file hal_comp_lld.c.
OSAL_IRQ_HANDLER | ( | KINETIS_COMP1_IRQ_VECTOR | ) |
OSAL_IRQ_HANDLER | ( | KINETIS_COMP2_IRQ_VECTOR | ) |
COMPDriver COMPD1 |
COMPD1 driver identifier.
Definition at line 47 of file hal_comp_lld.c.
Referenced by comp_lld_init(), and OSAL_IRQ_HANDLER().
|
extern |
COMPD1 driver identifier.
Definition at line 47 of file hal_comp_lld.c.
Referenced by comp_lld_init(), and OSAL_IRQ_HANDLER().
COMPDriver COMPD2 |
COMPD2 driver identifier.
Definition at line 55 of file hal_comp_lld.c.
Referenced by comp_lld_init(), and OSAL_IRQ_HANDLER().
|
extern |
COMPD2 driver identifier.
Definition at line 55 of file hal_comp_lld.c.
Referenced by comp_lld_init(), and OSAL_IRQ_HANDLER().
COMPDriver COMPD3 |
COMPD3 driver identifier.
Definition at line 63 of file hal_comp_lld.c.
Referenced by comp_lld_init(), and OSAL_IRQ_HANDLER().
|
extern |
COMPD3 driver identifier.
Definition at line 63 of file hal_comp_lld.c.
Referenced by comp_lld_init(), and OSAL_IRQ_HANDLER().