|
PER Firmware
|
Header file for private STM32G4 PWM register implementation. More...
#include <stdbool.h>#include <stdint.h>#include "stm32g4xx.h"Go to the source code of this file.
Classes | |
| struct | PWM_PRIV_TimerInfo_t |
| Timer-specific information required to configure PWM. More... | |
Functions | |
| bool | PHAL_PWM_priv_getTimerInfo (const TIM_TypeDef *tim, PWM_PRIV_TimerInfo_t *info) |
| Get timer specific information. | |
| bool | PHAL_PWM_priv_enableTimerClock (const TIM_TypeDef *tim) |
| Enable the peripheral clock for a timer. | |
| bool | PHAL_PWM_priv_initTimer (TIM_TypeDef *tim, uint16_t prescaler, uint16_t auto_reload, uint8_t channels_en, bool requires_main_out_en) |
| Configure timer registers for PWM operation. | |
| bool | PHAL_PWM_priv_setCompare (TIM_TypeDef *tim, uint8_t channel, uint32_t compare_value) |
| Set the capture/compare value for a PWM channel. | |
| uint32_t | PHAL_PWM_priv_getAutoReload (const TIM_TypeDef *tim) |
| Get the timer auto-reload register value. | |
Header file for private STM32G4 PWM register implementation.
| bool PHAL_PWM_priv_enableTimerClock | ( | const TIM_TypeDef * | tim | ) |
Enable the peripheral clock for a timer.
| uint32_t PHAL_PWM_priv_getAutoReload | ( | const TIM_TypeDef * | tim | ) |
Get the timer auto-reload register value.
| bool PHAL_PWM_priv_getTimerInfo | ( | const TIM_TypeDef * | tim, |
| PWM_PRIV_TimerInfo_t * | info ) |
Get timer specific information.
| bool PHAL_PWM_priv_initTimer | ( | TIM_TypeDef * | tim, |
| uint16_t | prescaler, | ||
| uint16_t | auto_reload, | ||
| uint8_t | channels_en, | ||
| bool | requires_main_out_en ) |
Configure timer registers for PWM operation.
| bool PHAL_PWM_priv_setCompare | ( | TIM_TypeDef * | tim, |
| uint8_t | channel, | ||
| uint32_t | compare_value ) |
Set the capture/compare value for a PWM channel.