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. | |
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. | |
void | comp_lld_set_dac_value (COMPDriver *compp, uint32_t value) |
Set the DAC value used by comp. | |
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) | |
uint32_t | comp_lld_get_status (COMPDriver *compp) |
Variables | |
COMPDriver | COMPD1 |
COMPD1 driver identifier. | |
COMPDriver | COMPD2 |
COMPD2 driver identifier. | |
COMPDriver | COMPD3 |
COMPD3 driver identifier. | |