riot_sys::bindgen

Type Alias saul_reg_t

Source
pub type saul_reg_t = saul_reg;
Expand description

@brief SAUL registry entry

Aliased Type§

struct saul_reg_t {
    pub next: *mut saul_reg,
    pub dev: *mut c_void,
    pub name: *const u8,
    pub driver: *const saul_driver_t,
}

Fields§

§next: *mut saul_reg

< pointer to the next device

§dev: *mut c_void

< pointer to the device descriptor

§name: *const u8

< string identifier for the device

§driver: *const saul_driver_t

< the devices read callback

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 16 bytes

Trait Implementations

Source§

impl Clone for saul_reg

Source§

fn clone(&self) -> saul_reg

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for saul_reg

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for saul_reg

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for saul_reg