#[repr(C)]pub struct gpio_dt_spec {
pub port: *const device,
pub pin: u8,
pub dt_flags: u16,
}
Expand description
@brief Container for GPIO pin information specified in devicetree
This type contains a pointer to a GPIO device, pin number for a pin controlled by that device, and the subset of pin configuration flags which may be given in devicetree.
@see GPIO_DT_SPEC_GET_BY_IDX @see GPIO_DT_SPEC_GET_BY_IDX_OR @see GPIO_DT_SPEC_GET @see GPIO_DT_SPEC_GET_OR
Fields§
§port: *const device
GPIO device controlling the pin
pin: u8
The pin’s number on the device
dt_flags: u16
The pin’s configuration flags as specified in devicetree
Trait Implementations§
Auto Trait Implementations§
impl Freeze for gpio_dt_spec
impl RefUnwindSafe for gpio_dt_spec
impl !Send for gpio_dt_spec
impl !Sync for gpio_dt_spec
impl Unpin for gpio_dt_spec
impl UnwindSafe for gpio_dt_spec
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more