#[repr(C)]pub struct led_dt_spec {
pub dev: *const device,
pub index: u32,
}Expand description
@brief Container for an LED information specified in devicetree.
This type contains a pointer to and LED device and an LED index.
@see LED_DT_SPEC_GET @see LED_DT_SPEC_GET_OR
Fields§
§dev: *const deviceLED device instance.
index: u32Index of the LED on the controller.
Trait Implementations§
Source§impl Debug for led_dt_spec
impl Debug for led_dt_spec
Source§impl Default for led_dt_spec
impl Default for led_dt_spec
Source§fn default() -> led_dt_spec
fn default() -> led_dt_spec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for led_dt_spec
impl RefUnwindSafe for led_dt_spec
impl !Send for led_dt_spec
impl !Sync for led_dt_spec
impl Unpin for led_dt_spec
impl UnwindSafe for led_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