Astra MCU SDK Peripheral Driver Library
 
Loading...
Searching...
No Matches
spwm_pwmpr_cfg_t Struct Reference

PWM with Pseudo-Random configuration. More...

#include <spwm.h>

Data Fields

spwm_pwm_cfg_t pwm
 
uint16_t lfsr_seed
 
uint16_t lfsr_tap
 

Detailed Description

PWM with Pseudo-Random configuration.

This structure defines configuration for pseudo-random PWM mode. This stores the seed and tap values required to configure the Linear Feedback Shift Register (LFSR) used in pseudo-random PWM generation.

Field Documentation

◆ pwm

spwm_pwm_cfg_t spwm_pwmpr_cfg_t::pwm

Base PWM configuration

◆ lfsr_seed

uint16_t spwm_pwmpr_cfg_t::lfsr_seed

Initial seed value for the LFSR

◆ lfsr_tap

uint16_t spwm_pwmpr_cfg_t::lfsr_tap

Tap position used for feedback polynomial