#[repr(C, packed(1))]pub struct gpio_conf_nrf5x__bindgen_ty_1 {
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
}
Fields§
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
Implementations§
Source§impl gpio_conf_nrf5x__bindgen_ty_1
impl gpio_conf_nrf5x__bindgen_ty_1
pub fn state(&self) -> gpio_state_t
pub fn set_state(&mut self, val: gpio_state_t)
pub fn pull(&self) -> gpio_pull_t
pub fn set_pull(&mut self, val: gpio_pull_t)
pub fn drive_strength(&self) -> gpio_drive_strength_t
pub fn set_drive_strength(&mut self, val: gpio_drive_strength_t)
pub fn initial_value(&self) -> bool
pub fn set_initial_value(&mut self, val: bool)
pub fn new_bitfield_1( state: gpio_state_t, pull: gpio_pull_t, drive_strength: gpio_drive_strength_t, initial_value: bool, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for gpio_conf_nrf5x__bindgen_ty_1
impl Clone for gpio_conf_nrf5x__bindgen_ty_1
Source§fn clone(&self) -> gpio_conf_nrf5x__bindgen_ty_1
fn clone(&self) -> gpio_conf_nrf5x__bindgen_ty_1
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for gpio_conf_nrf5x__bindgen_ty_1
Auto Trait Implementations§
impl Freeze for gpio_conf_nrf5x__bindgen_ty_1
impl RefUnwindSafe for gpio_conf_nrf5x__bindgen_ty_1
impl Send for gpio_conf_nrf5x__bindgen_ty_1
impl Sync for gpio_conf_nrf5x__bindgen_ty_1
impl Unpin for gpio_conf_nrf5x__bindgen_ty_1
impl UnwindSafe for gpio_conf_nrf5x__bindgen_ty_1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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: 1 byte