Open FFBoard
Open source force feedback firmware
PWMConfig Struct Reference

#include <MotorPWM.h>

Public Attributes

uint32_t channel_1 = TIM_CHANNEL_1
 
uint32_t channel_2 = TIM_CHANNEL_2
 
uint32_t channel_3 = TIM_CHANNEL_3
 
uint32_t channel_4 = TIM_CHANNEL_4
 
uint8_t pwm_chan = 1
 
uint8_t dir_chan = 3
 
uint8_t dir_chan_n = 4
 
uint8_t centerpwm_chan = 1
 
uint8_t rcpwm_chan = 1
 
uint8_t dualpwm1 = 1
 
uint8_t dualpwm2 = 2
 
TIM_HandleTypeDef * timer = &TIM_PWM
 
uint32_t timerFreq = 168000000
 

Detailed Description

Definition at line 27 of file MotorPWM.h.

Member Data Documentation

◆ centerpwm_chan

uint8_t PWMConfig::centerpwm_chan = 1

Definition at line 37 of file MotorPWM.h.

◆ channel_1

uint32_t PWMConfig::channel_1 = TIM_CHANNEL_1

Definition at line 28 of file MotorPWM.h.

◆ channel_2

uint32_t PWMConfig::channel_2 = TIM_CHANNEL_2

Definition at line 29 of file MotorPWM.h.

◆ channel_3

uint32_t PWMConfig::channel_3 = TIM_CHANNEL_3

Definition at line 30 of file MotorPWM.h.

◆ channel_4

uint32_t PWMConfig::channel_4 = TIM_CHANNEL_4

Definition at line 31 of file MotorPWM.h.

◆ dir_chan

uint8_t PWMConfig::dir_chan = 3

Definition at line 34 of file MotorPWM.h.

◆ dir_chan_n

uint8_t PWMConfig::dir_chan_n = 4

Definition at line 35 of file MotorPWM.h.

◆ dualpwm1

uint8_t PWMConfig::dualpwm1 = 1

Definition at line 41 of file MotorPWM.h.

◆ dualpwm2

uint8_t PWMConfig::dualpwm2 = 2

Definition at line 42 of file MotorPWM.h.

◆ pwm_chan

uint8_t PWMConfig::pwm_chan = 1

Definition at line 33 of file MotorPWM.h.

◆ rcpwm_chan

uint8_t PWMConfig::rcpwm_chan = 1

Definition at line 39 of file MotorPWM.h.

◆ timer

TIM_HandleTypeDef* PWMConfig::timer = &TIM_PWM

Definition at line 44 of file MotorPWM.h.

◆ timerFreq

uint32_t PWMConfig::timerFreq = 168000000

Definition at line 45 of file MotorPWM.h.


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