libopencm3 Defined Constants and Types for the STM32F0xx Comparator module
More...
libopencm3 Defined Constants and Types for the STM32F0xx Comparator module
- Version
- 1.0.0
- Date
- 29 Jun 2013
LGPL License Terms libopencm3 License
◆ COMP1
◆ COMP2
◆ COMP_CSR
◆ COMP_CSR1
◆ COMP_CSR2
◆ COMP_CSR_EN
#define COMP_CSR_EN (1 << 0) |
◆ COMP_CSR_HYST
◆ COMP_CSR_HYST_HIGH
◆ COMP_CSR_HYST_LOW
◆ COMP_CSR_HYST_MED
◆ COMP_CSR_HYST_NO
◆ COMP_CSR_HYST_SHIFT
#define COMP_CSR_HYST_SHIFT 12 |
◆ COMP_CSR_INSEL
◆ COMP_CSR_INSEL_1_4_VREFINT
◆ COMP_CSR_INSEL_2_4_VREFINT
◆ COMP_CSR_INSEL_3_4_VREFINT
◆ COMP_CSR_INSEL_4_4_VREFINT
◆ COMP_CSR_INSEL_INM4
◆ COMP_CSR_INSEL_INM5
◆ COMP_CSR_INSEL_INM6
◆ COMP_CSR_INSEL_SHIFT
#define COMP_CSR_INSEL_SHIFT 4 |
◆ COMP_CSR_INSEL_VREFINT
◆ COMP_CSR_LOCK
#define COMP_CSR_LOCK (1 << 15) |
◆ COMP_CSR_OUT
#define COMP_CSR_OUT (1 << 14) |
◆ COMP_CSR_OUTSEL
◆ COMP_CSR_OUTSEL_NONE
◆ COMP_CSR_OUTSEL_SHIFT
#define COMP_CSR_OUTSEL_SHIFT 8 |
◆ COMP_CSR_OUTSEL_TIM1_BRK
◆ COMP_CSR_OUTSEL_TIM1_IC1
◆ COMP_CSR_OUTSEL_TIM1_OCRCLR
◆ COMP_CSR_OUTSEL_TIM2_IC4
◆ COMP_CSR_OUTSEL_TIM2_OCRCLR
◆ COMP_CSR_OUTSEL_TIM3_IC1
◆ COMP_CSR_OUTSEL_TIM3_OCRCLR
◆ COMP_CSR_POL
#define COMP_CSR_POL (1 << 11) |
◆ COMP_CSR_SPEED
◆ COMP_CSR_SPEED_HIGH
◆ COMP_CSR_SPEED_LOW
◆ COMP_CSR_SPEED_MED
◆ COMP_CSR_SPEED_SHIFT
#define COMP_CSR_SPEED_SHIFT 2 |
◆ COMP_CSR_SPEED_VERYLOW
◆ COMP_CSR_SW1
#define COMP_CSR_SW1 (1 << 1) |
◆ COMP_CSR_WINDWEN
#define COMP_CSR_WINDWEN (1 << 23) |
◆ comp_disable()
void comp_disable |
( |
uint8_t |
id | ) |
|
◆ comp_enable()
void comp_enable |
( |
uint8_t |
id | ) |
|
◆ comp_select_hyst()
void comp_select_hyst |
( |
uint8_t |
id, |
|
|
uint32_t |
hyst |
|
) |
| |
◆ comp_select_input()
void comp_select_input |
( |
uint8_t |
id, |
|
|
uint32_t |
input |
|
) |
| |
◆ comp_select_output()
void comp_select_output |
( |
uint8_t |
id, |
|
|
uint32_t |
output |
|
) |
| |
◆ comp_select_speed()
void comp_select_speed |
( |
uint8_t |
id, |
|
|
uint32_t |
speed |
|
) |
| |