[][src]Struct esp_idf_sys::mcpwm_config_t

#[repr(C)]
pub struct mcpwm_config_t {
    pub frequency: u32,
    pub cmpr_a: f32,
    pub cmpr_b: f32,
    pub duty_mode: mcpwm_duty_type_t,
    pub counter_mode: mcpwm_counter_type_t,
}

@brief MCPWM config structure

Fields

frequency: u32

<Set frequency of MCPWM in Hz

cmpr_a: f32

<Set % duty cycle for operator a(MCPWMXA), i.e for 62.3% duty cycle, duty_a = 62.3

cmpr_b: f32

<Set % duty cycle for operator b(MCPWMXB), i.e for 48% duty cycle, duty_b = 48.0

duty_mode: mcpwm_duty_type_t

<Set type of duty cycle

counter_mode: mcpwm_counter_type_t

<Set type of MCPWM counter

Trait Implementations

impl Debug for mcpwm_config_t[src]

impl Copy for mcpwm_config_t[src]

impl Clone for mcpwm_config_t[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]