pub struct MemoryData {
pub data: [u8; 16],
/* private fields */
}Fields§
§data: [u8; 16]Implementations§
Source§impl MemoryData
impl MemoryData
Returns the core button data.
Sourcepub const fn error_flag(&self) -> u8
pub const fn error_flag(&self) -> u8
Returns the error flag.
Known values:
- 0: No error
- 7: Attempted to read from write-only register or disconnected extension
- 8: Attempted to read from non-existing address
Sourcepub const fn address_offset(&self) -> u16
pub const fn address_offset(&self) -> u16
Returns the 2 least significant bytes of the address of the first byte.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryData
impl RefUnwindSafe for MemoryData
impl Send for MemoryData
impl Sync for MemoryData
impl Unpin for MemoryData
impl UnsafeUnpin for MemoryData
impl UnwindSafe for MemoryData
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