#[repr(C)]pub struct Params {
pub gpio: usize,
pub mode: usize,
}Expand description
Parameters of configure
Fields§
§gpio: usizeIndex of the GPIO to configure.
mode: usizeBit-field describing the configuration.
| Bits | Description |
|---|---|
| 01:00 | Input configuration |
| 09:08 | Output configuration |
| 16:16 | Output initial value |
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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