pub struct RpioState { /* private fields */ }
Implementations§
Source§impl RpioState
impl RpioState
pub fn from_data(data: [u32; 256]) -> Self
pub fn data(&self) -> &[u32; 256]
pub fn into_data(self) -> [u32; 256]
pub fn pin_mode(&self, index: u32) -> PinMode
pub fn pin_level(&self, index: u32) -> bool
pub fn pin_event(&self, index: u32) -> bool
pub fn pin_detect_rise(&self, index: u32) -> bool
pub fn pin_detect_fall(&self, index: u32) -> bool
pub fn pin_detect_high(&self, index: u32) -> bool
pub fn pin_detect_low(&self, index: u32) -> bool
pub fn pin_detect_async_rise(&self, index: u32) -> bool
pub fn pin_detect_async_fall(&self, index: u32) -> bool
pub fn pin(&self, index: u32) -> PinInfo
pub fn pins(&self) -> Vec<PinInfo>
Auto Trait Implementations§
impl Freeze for RpioState
impl RefUnwindSafe for RpioState
impl Send for RpioState
impl Sync for RpioState
impl Unpin for RpioState
impl UnwindSafe for RpioState
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