|
HARMcksL: ARM HAL toolbox (yet STM32 oriented) 1.6
SMFSW collection of HAL hacks for STM32
|
Software PWM on GPIO struct. More...
#include <PWM_GPIO.h>
Data Fields | ||
| uint16_t | cntr | |
| Counter. | ||
| uint16_t | duty | |
| Current Duty cycle. | ||
| bool | init | |
| PWM initialized (ready for use) | ||
| struct { | ||
| TIM_HandleTypeDef * pTim | ||
| Timer instance (for reference) More... | ||
| GPIO_TypeDef * GPIOx | ||
| Port of emulated PWM pin. More... | ||
| uint16_t GPIO_Pin | ||
| Pin mask on port. More... | ||
| uint16_t tim_freq | ||
| Timer frequency (for reference) More... | ||
| uint16_t duty | ||
| Duty Cycle (effective when new period starts) More... | ||
| uint16_t per | ||
| Overflow threshold (emulated PWM period) More... | ||
| bool polarity | ||
| Output polarity. More... | ||
| } | cfg | |
Software PWM on GPIO struct.
| struct { ... } PWM_GPIO::cfg |
| uint16_t PWM_GPIO::cntr |
Counter.
| uint16_t PWM_GPIO::duty |
Current Duty cycle.
Duty Cycle (effective when new period starts)
| uint16_t PWM_GPIO::GPIO_Pin |
Pin mask on port.
| GPIO_TypeDef* PWM_GPIO::GPIOx |
Port of emulated PWM pin.
| bool PWM_GPIO::init |
PWM initialized (ready for use)
| uint16_t PWM_GPIO::per |
Overflow threshold (emulated PWM period)
| bool PWM_GPIO::polarity |
Output polarity.
| TIM_HandleTypeDef* PWM_GPIO::pTim |
Timer instance (for reference)
| uint16_t PWM_GPIO::tim_freq |
Timer frequency (for reference)