no-OS
Classes | Enumerations | Variables
stm32_pwm.h File Reference

Implementation of stm32 pwm driver. More...

#include <stdint.h>
#include <stdbool.h>
#include "no_os_gpio.h"
#include "no_os_irq.h"
#include "stm32_gpio.h"
#include "stm32_hal.h"
Include dependency graph for stm32_pwm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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  TimOCMode {
  TIM_OC_TOGGLE = 0,
  TIM_OC_PWM1 = 1,
  TIM_OC_PWM2 = 2
}
 
enum  stm32_pwm_trigger {
  PWM_TS_ITR0,
  PWM_TS_ITR1,
  PWM_TS_ITR2,
  PWM_TS_ITR3
}
 
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
}
 

Variables

const struct no_os_pwm_platform_ops stm32_pwm_ops
 STM32 specific PWM platform ops structure. More...
 

Detailed Description

Implementation of stm32 pwm driver.

Header file for stm32 pwm specifics.

Copyright 2023(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Enumeration Type Documentation

◆ stm32_pwm_trigger

Enumerator
PWM_TS_ITR0 
PWM_TS_ITR1 
PWM_TS_ITR2 
PWM_TS_ITR3 

◆ 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 

◆ 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

STM32 specific PWM platform ops structure.

STM32 specific PWM platform ops structure.