no-OS
Loading...
Searching...
No Matches
stm32_pwm.h File Reference

Header file for stm32 pwm specifics. More...

#include <stdint.h>
#include <stdbool.h>
#include "no_os_irq.h"
#include "stm32_hal.h"
Include dependency graph for stm32_pwm.h:

Classes

struct  stm32_pwm_init_param
 Structure holding the STM32 PWM parameters. More...
 
struct  stm32_pwm_desc
 Structure holding the STM32 PWM descriptor. More...
 

Enumerations

enum  stm32_pwm_timer {
  STM32_PWM_TIMER_TIM = 0 ,
  STM32_PWM_TIMER_LPTIM = 1
}
 
enum  TimOCMode {
  TIM_OC_TOGGLE = 0 ,
  TIM_OC_PWM1 = 1 ,
  TIM_OC_PWM2 = 2
}
 
enum  stm32_pwm_trigger {
  PWM_TS_NONE ,
  PWM_TS_ITR0 ,
  PWM_TS_ITR1 ,
  PWM_TS_ITR2 ,
  PWM_TS_ITR3 ,
  PWM_TS_ETR
}
 
enum  stm32_pwm_trigger_polarity {
  PWM_TRIG_POL_RISING ,
  PWM_TRIG_POL_FALLING
}
 
enum  stm32_pwm_trigger_out {
  PWM_TRGO_RESET ,
  PWM_TRGO_ENABLE ,
  PWM_TRGO_UPDATE ,
  PWM_TRGO_OC1 ,
  PWM_TRGO_OC1REF ,
  PWM_TRGO_OC2REF ,
  PWM_TRGO_OC3REF ,
  PWM_TRGO_OC4REF
}
 
enum  stm32_pwm_slave_mode {
  STM32_PWM_SM_DISABLE ,
  STM32_PWM_SM_TRIGGER ,
  STM32_PWM_SM_EXTERNAL1 ,
  STM32_PWM_SM_GATED
}
 

Variables

const struct no_os_pwm_platform_ops stm32_pwm_ops
 STM32 specific PWM platform ops structure.
 

Detailed Description

Header file for stm32 pwm specifics.

Copyright 2023(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Enumeration Type Documentation

◆ stm32_pwm_slave_mode

Enumerator
STM32_PWM_SM_DISABLE 
STM32_PWM_SM_TRIGGER 
STM32_PWM_SM_EXTERNAL1 
STM32_PWM_SM_GATED 

◆ stm32_pwm_timer

Enumerator
STM32_PWM_TIMER_TIM 
STM32_PWM_TIMER_LPTIM 

◆ stm32_pwm_trigger

Enumerator
PWM_TS_NONE 
PWM_TS_ITR0 
PWM_TS_ITR1 
PWM_TS_ITR2 
PWM_TS_ITR3 
PWM_TS_ETR 

◆ stm32_pwm_trigger_out

Enumerator
PWM_TRGO_RESET 
PWM_TRGO_ENABLE 
PWM_TRGO_UPDATE 
PWM_TRGO_OC1 
PWM_TRGO_OC1REF 
PWM_TRGO_OC2REF 
PWM_TRGO_OC3REF 
PWM_TRGO_OC4REF 

◆ stm32_pwm_trigger_polarity

Enumerator
PWM_TRIG_POL_RISING 
PWM_TRIG_POL_FALLING 

◆ TimOCMode

enum TimOCMode
Enumerator
TIM_OC_TOGGLE 
TIM_OC_PWM1 
TIM_OC_PWM2 

Variable Documentation

◆ stm32_pwm_ops

const struct no_os_pwm_platform_ops stm32_pwm_ops
extern

STM32 specific PWM platform ops structure.

STM32 specific PWM platform ops structure.