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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.