pub struct DeviceStatus {
pub raw: u8,
}Expand description
Device status structure
Fields§
§raw: u8Raw 8-bit status register value
Implementations§
Source§impl DeviceStatus
impl DeviceStatus
Sourcepub fn active_channel(&self) -> Option<u8>
pub fn active_channel(&self) -> Option<u8>
Get active channel as Option (None if no channel is active)
Sourcepub fn is_channel_ready(&self, channel: u8) -> bool
pub fn is_channel_ready(&self, channel: u8) -> bool
Check if specific channel is ready
Trait Implementations§
Source§impl Clone for DeviceStatus
impl Clone for DeviceStatus
Source§fn clone(&self) -> DeviceStatus
fn clone(&self) -> DeviceStatus
Returns a duplicate 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 moreSource§impl Debug for DeviceStatus
impl Debug for DeviceStatus
Source§impl Display for DeviceStatus
impl Display for DeviceStatus
Source§impl Format for DeviceStatus
impl Format for DeviceStatus
Source§impl PartialEq for DeviceStatus
impl PartialEq for DeviceStatus
impl Copy for DeviceStatus
impl Eq for DeviceStatus
impl StructuralPartialEq for DeviceStatus
Auto Trait Implementations§
impl Freeze for DeviceStatus
impl RefUnwindSafe for DeviceStatus
impl Send for DeviceStatus
impl Sync for DeviceStatus
impl Unpin for DeviceStatus
impl UnwindSafe for DeviceStatus
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