[][src]Struct librgbmatrix_sys::RGBLedMatrixOptions

#[repr(C)]
pub struct RGBLedMatrixOptions {
    pub hardware_mapping: *const c_char,
    pub rows: c_int,
    pub cols: c_int,
    pub chain_length: c_int,
    pub parallel: c_int,
    pub pwm_bits: c_int,
    pub pwm_lsb_nanoseconds: c_int,
    pub pwm_dither_bits: c_int,
    pub brightness: c_int,
    pub scan_mode: c_int,
    pub row_address_type: c_int,
    pub multiplexing: c_int,
    pub led_rgb_sequence: *const c_char,
    pub pixel_mapper_config: *const c_char,
    pub panel_type: *const c_char,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub __bindgen_padding_0: [u8; 7],
}

Parameters to create a new matrix.

To get the defaults, non-set values have to be initialized to zero, so you should zero out this struct before setting anything.

Fields

hardware_mapping: *const c_charrows: c_intcols: c_intchain_length: c_intparallel: c_intpwm_bits: c_intpwm_lsb_nanoseconds: c_intpwm_dither_bits: c_intbrightness: c_intscan_mode: c_introw_address_type: c_intmultiplexing: c_intled_rgb_sequence: *const c_charpixel_mapper_config: *const c_charpanel_type: *const c_char_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>__bindgen_padding_0: [u8; 7]

Methods

impl RGBLedMatrixOptions[src]

pub fn disable_hardware_pulsing(&self) -> c_uint[src]

pub fn set_disable_hardware_pulsing(&mut self, val: c_uint)[src]

pub fn show_refresh_rate(&self) -> c_uint[src]

pub fn set_show_refresh_rate(&mut self, val: c_uint)[src]

pub fn inverse_colors(&self) -> c_uint[src]

pub fn set_inverse_colors(&mut self, val: c_uint)[src]

pub fn new_bitfield_1(
    disable_hardware_pulsing: c_uint,
    show_refresh_rate: c_uint,
    inverse_colors: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for RGBLedMatrixOptions[src]

impl Copy for RGBLedMatrixOptions[src]

impl Debug for RGBLedMatrixOptions[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> 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.