[][src]Struct esp_idf_sys::mcpwm_carrier_config_t

#[repr(C)]
pub struct mcpwm_carrier_config_t {
    pub carrier_period: u8,
    pub carrier_duty: u8,
    pub pulse_width_in_os: u8,
    pub carrier_os_mode: mcpwm_carrier_os_t,
    pub carrier_ivt_mode: mcpwm_carrier_out_ivt_t,
}

@brief MCPWM config carrier structure

Fields

carrier_period: u8

<Set carrier period = (carrier_period + 1)*800ns, carrier_period should be < 16

carrier_duty: u8

<Set carrier duty cycle, carrier_duty should be less than 8 (increment every 12.5%)

pulse_width_in_os: u8

<Set pulse width of first pulse in one shot mode = (carrier period)*(pulse_width_in_os + 1), should be less then 16

carrier_os_mode: mcpwm_carrier_os_t

<Enable or disable carrier oneshot mode

carrier_ivt_mode: mcpwm_carrier_out_ivt_t

<Invert output of carrier

Trait Implementations

impl Debug for mcpwm_carrier_config_t[src]

impl Copy for mcpwm_carrier_config_t[src]

impl Clone for mcpwm_carrier_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]