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

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 
 

Detailed Description

PWM input capture structure.

Field Documentation

◆ ActiveChan

uint32_t PWM_IC::ActiveChan

PWM capture active channel to trigger on.

◆ CallbackTick

volatile uint32_t PWM_IC::CallbackTick

Last callback Tick (useful to ensure Freq & DutyCycle are still valid)

◆ [struct]

struct { ... } PWM_IC::cfg

◆ Direct_cnt

volatile uint32_t PWM_IC::Direct_cnt

Direct channel sampled counter value.

◆ Direct_Pin

uint32_t PWM_IC::Direct_Pin

PWM capture Direct mode pin.

◆ DutyCycle

uint32_t PWM_IC::DutyCycle

Duty Cycle Value.

◆ Frequency

uint32_t PWM_IC::Frequency

Frequency Value.

◆ htim

TIM_HandleTypeDef* PWM_IC::htim

PWM capture TIM handler.

◆ Indirect_cnt

volatile uint32_t PWM_IC::Indirect_cnt

Indirect channel sample counter value.

◆ Indirect_Pin

uint32_t PWM_IC::Indirect_Pin

PWM capture Indirect mode pin.

◆ Last_Edge

volatile eEdge PWM_IC::Last_Edge

Last captured edge (caught through ITs, or deduced from callback)

◆ New_Sample

volatile bool PWM_IC::New_Sample

New samples available.

◆ refCLK

uint32_t PWM_IC::refCLK

PWM capture TIM reference clock.

◆ Scale

uint32_t PWM_IC::Scale

PWM capture scale range.

◆ Timeout

uint32_t PWM_IC::Timeout

No sample timeout.


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