|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Header file for STM32 counter capture driver. More...
Go to the source code of this file.
Macros | |
Prescaler Divider | |
Ratio of the prescaler for input capture. | |
| #define | COUNTER_CAPTURE_STM32_PRESCALER_DIV1 (0 << COUNTER_CAPTURE_STM32_PRESCALER_DIV_POS) |
| Capture on every edge. | |
| #define | COUNTER_CAPTURE_STM32_PRESCALER_DIV2 (1 << COUNTER_CAPTURE_STM32_PRESCALER_DIV_POS) |
| Capture on every 2nd edge. | |
| #define | COUNTER_CAPTURE_STM32_PRESCALER_DIV4 (2 << COUNTER_CAPTURE_STM32_PRESCALER_DIV_POS) |
| Capture on every 4th edge. | |
| #define | COUNTER_CAPTURE_STM32_PRESCALER_DIV8 (3 << COUNTER_CAPTURE_STM32_PRESCALER_DIV_POS) |
| Capture on every 8th edge. | |
Input Capture Sampling Frequency and Digital Filter | |
Configuration for sampling frequency and digital filter length. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV1_N1 (0 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS, N=1 (no filter). | |
| #define | COUNTER_CAPTURE_STM32_FILTER_TIM_KER_CK_N2 (1 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fTIM_KER_CK, N=2. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_TIM_KER_CK_N4 (2 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fTIM_KER_CK, N=4. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_TIM_KER_CK_N8 (3 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fTIM_KER_CK, N=8. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV2_N6 (4 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/2, N=6. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV2_N8 (5 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/2, N=8. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV4_N6 (6 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/4, N=6. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV4_N8 (7 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/4, N=8. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV8_N6 (8 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/8, N=6. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV8_N8 (9 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/8, N=8. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV16_N5 (10 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/16, N=5. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV16_N6 (11 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/16, N=6. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV16_N8 (12 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/16, N=8. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV32_N5 (13 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/32, N=5. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV32_N6 (14 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/32, N=6. | |
| #define | COUNTER_CAPTURE_STM32_FILTER_DTS_DIV32_N8 (15 << COUNTER_CAPTURE_STM32_FILTER_POS) |
| Sampling: fDTS/32, N=8. | |
Header file for STM32 counter capture driver.