Struct riot_sys::gpio_conf_nrf5x__bindgen_ty_1
source · #[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 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