HARMcksL: ARM HAL toolbox (yet STM32 oriented) 1.6
SMFSW collection of HAL hacks for STM32
Loading...
Searching...
No Matches
PWM_GPIO Struct Reference

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 
 

Detailed Description

Software PWM on GPIO struct.

Field Documentation

◆ [struct]

struct { ... } PWM_GPIO::cfg

◆ cntr

uint16_t PWM_GPIO::cntr

Counter.

◆ duty

uint16_t PWM_GPIO::duty

Current Duty cycle.

Duty Cycle (effective when new period starts)

◆ GPIO_Pin

uint16_t PWM_GPIO::GPIO_Pin

Pin mask on port.

◆ GPIOx

GPIO_TypeDef* PWM_GPIO::GPIOx

Port of emulated PWM pin.

◆ init

bool PWM_GPIO::init

PWM initialized (ready for use)

◆ per

uint16_t PWM_GPIO::per

Overflow threshold (emulated PWM period)

◆ polarity

bool PWM_GPIO::polarity

Output polarity.

◆ pTim

TIM_HandleTypeDef* PWM_GPIO::pTim

Timer instance (for reference)

◆ tim_freq

uint16_t PWM_GPIO::tim_freq

Timer frequency (for reference)


The documentation for this struct was generated from the following file: