Struct riot_sys::saul_driver_t
source · [−]#[repr(C)]pub struct saul_driver_t {
pub read: saul_read_t,
pub write: saul_write_t,
pub type_: u8,
}
Expand description
@brief Definition of the RIOT actuator/sensor interface
Fields
read: saul_read_t
< read function pointer
write: saul_write_t
< write function pointer
type_: u8
< device class the device belongs to
Trait Implementations
sourceimpl Clone for saul_driver_t
impl Clone for saul_driver_t
sourcefn clone(&self) -> saul_driver_t
fn clone(&self) -> saul_driver_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for saul_driver_t
impl Debug for saul_driver_t
sourceimpl Default for saul_driver_t
impl Default for saul_driver_t
sourcefn default() -> saul_driver_t
fn default() -> saul_driver_t
Returns the “default value” for a type. Read more
impl Copy for saul_driver_t
Auto Trait Implementations
impl RefUnwindSafe for saul_driver_t
impl Send for saul_driver_t
impl Sync for saul_driver_t
impl Unpin for saul_driver_t
impl UnwindSafe for saul_driver_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more