Struct bl602_sdk::pwm::PWM_CH_CFG_Type [−][src]
#[repr(C)]pub struct PWM_CH_CFG_Type { pub ch: PWM_CH_ID_Type, pub clk: PWM_Clk_Type, pub stopMode: PWM_Stop_Mode_Type, pub pol: PWM_Polarity_Type, pub clkDiv: u16, pub period: u16, pub threshold1: u16, pub threshold2: u16, pub intPulseCnt: u16, }
Expand description
@brief PWM configuration structure type definition
Fields
ch: PWM_CH_ID_Type
< PWM channel
clk: PWM_Clk_Type
< PWM Clock
stopMode: PWM_Stop_Mode_Type
< PWM Stop Mode
pol: PWM_Polarity_Type
< PWM mode type
clkDiv: u16
< PWM clkDiv num
period: u16
< PWM period set
threshold1: u16
< PWM threshold1 num
threshold2: u16
< PWM threshold2 num
intPulseCnt: u16
< PWM interrupt pulse count
Trait Implementations
Auto Trait Implementations
Blanket Implementations
pub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
pub fn from(t: T) -> T
pub fn from(t: T) -> T
Performs the conversion.
pub fn into(self) -> U
pub fn into(self) -> U
Performs the conversion.