Struct riot_sys::qdec_conf_t
source · #[repr(C)]pub struct qdec_conf_t {
pub a_pin: gpio_t,
pub b_pin: gpio_t,
pub led_pin: gpio_t,
pub sample_period: u8,
pub debounce_filter: bool,
}
Expand description
@brief Quadrature decoder configuration struct
Fields§
§a_pin: gpio_t
< GPIO Pin for phase A
b_pin: gpio_t
< GPIO Pin for phase B
led_pin: gpio_t
< LED GPIO, GPIO_UNDEF to disable
sample_period: u8
< Sample period used, e.g. QDEC_SAMPLEPER_SAMPLEPER_128us
debounce_filter: bool
< Enable/disable debounce filter
Trait Implementations§
source§impl Clone for qdec_conf_t
impl Clone for qdec_conf_t
source§fn clone(&self) -> qdec_conf_t
fn clone(&self) -> qdec_conf_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for qdec_conf_t
impl Debug for qdec_conf_t
source§impl Default for qdec_conf_t
impl Default for qdec_conf_t
source§fn default() -> qdec_conf_t
fn default() -> qdec_conf_t
Returns the “default value” for a type. Read more