|
HARMcksL: ARM HAL toolbox (yet STM32 oriented) 1.6
SMFSW collection of HAL hacks for STM32
|
PWM input capture structure. More...
#include <PWM_IC.h>
Data Fields | ||
| uint32_t | Frequency | |
| Frequency Value. | ||
| uint32_t | DutyCycle | |
| Duty Cycle Value. | ||
| uint32_t | Timeout | |
| No sample timeout. | ||
| volatile uint32_t | CallbackTick | |
| Last callback Tick (useful to ensure Freq & DutyCycle are still valid) | ||
| volatile uint32_t | Direct_cnt | |
| Direct channel sampled counter value. | ||
| volatile uint32_t | Indirect_cnt | |
| Indirect channel sample counter value. | ||
| volatile eEdge | Last_Edge | |
| Last captured edge (caught through ITs, or deduced from callback) | ||
| volatile bool | New_Sample | |
| New samples available. | ||
| struct { | ||
| TIM_HandleTypeDef * htim | ||
| PWM capture TIM handler. More... | ||
| uint32_t Direct_Pin | ||
| PWM capture Direct mode pin. More... | ||
| uint32_t Indirect_Pin | ||
| PWM capture Indirect mode pin. More... | ||
| uint32_t ActiveChan | ||
| PWM capture active channel to trigger on. More... | ||
| uint32_t refCLK | ||
| PWM capture TIM reference clock. More... | ||
| uint32_t Scale | ||
| PWM capture scale range. More... | ||
| } | cfg | |
PWM input capture structure.
| uint32_t PWM_IC::ActiveChan |
PWM capture active channel to trigger on.
| volatile uint32_t PWM_IC::CallbackTick |
Last callback Tick (useful to ensure Freq & DutyCycle are still valid)
| struct { ... } PWM_IC::cfg |
| volatile uint32_t PWM_IC::Direct_cnt |
Direct channel sampled counter value.
| uint32_t PWM_IC::Direct_Pin |
PWM capture Direct mode pin.
| uint32_t PWM_IC::DutyCycle |
Duty Cycle Value.
| uint32_t PWM_IC::Frequency |
Frequency Value.
| TIM_HandleTypeDef* PWM_IC::htim |
PWM capture TIM handler.
| volatile uint32_t PWM_IC::Indirect_cnt |
Indirect channel sample counter value.
| uint32_t PWM_IC::Indirect_Pin |
PWM capture Indirect mode pin.
| volatile eEdge PWM_IC::Last_Edge |
Last captured edge (caught through ITs, or deduced from callback)
| volatile bool PWM_IC::New_Sample |
New samples available.
| uint32_t PWM_IC::refCLK |
PWM capture TIM reference clock.
| uint32_t PWM_IC::Scale |
PWM capture scale range.
| uint32_t PWM_IC::Timeout |
No sample timeout.