|
STC15W408AS library 0.18.0
|

Go to the source code of this file.
Macros | |
| #define | CMP_ENABLE_BIT_POS 7 |
| Comparator enable bit position. | |
| #define | CMP_ENABLE_BIT_MASK bit_mask(CMP_ENABLE_BIT_POS) |
| Comparator enable bit mask. | |
| #define | CMP_ENABLE_BIT (CMP_ENABLE_BIT_MASK) |
| Comparator enable bit. | |
| #define | CMPCR1_DEFAULT_VALUE 0x00 |
| CMPCR1 register value after reset. | |
| #define | CMPCR2_DEFAULT_VALUE 0x09 |
| CMPCR2 register value after reset. | |
| #define | comparator_init_async() |
| Comparator init for using interrupts routine. | |
| #define | comparator_start() (bit_set(CMPCR1, CMP_ENABLE_BIT)) |
| Comparator start routine. | |
| #define | comparator_stop() (bit_clr(CMPCR1, CMP_ENABLE_BIT)) |
| Comparator stop routine. | |