[][src]Struct esp_idf_sys::ledc_channel_config_t

#[repr(C)]
pub struct ledc_channel_config_t {
    pub gpio_num: c_int,
    pub speed_mode: ledc_mode_t,
    pub channel: ledc_channel_t,
    pub intr_type: ledc_intr_type_t,
    pub timer_sel: ledc_timer_t,
    pub duty: u32,
    pub hpoint: c_int,
}

@brief Configuration parameters of LEDC channel for ledc_channel_config function

Fields

gpio_num: c_int

< the LEDC output gpio_num, if you want to use gpio16, gpio_num = 16

speed_mode: ledc_mode_t

< LEDC speed speed_mode, high-speed mode or low-speed mode

channel: ledc_channel_t

< LEDC channel (0 - 7)

intr_type: ledc_intr_type_t

< configure interrupt, Fade interrupt enable or Fade interrupt disable

timer_sel: ledc_timer_t

< Select the timer source of channel (0 - 3)

duty: u32

< LEDC channel duty, the range of duty setting is [0, (2**duty_resolution)]

hpoint: c_int

< LEDC channel hpoint value, the max value is 0xfffff

Trait Implementations

impl Debug for ledc_channel_config_t[src]

impl Copy for ledc_channel_config_t[src]

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