Struct joycon_sys::mcu::MCUReport
source · #[repr(packed(1))]pub struct MCUReport { /* private fields */ }
Implementations§
source§impl MCUReport
impl MCUReport
pub fn new() -> Self
pub fn id(&self) -> RawId<MCUReportId>
pub fn empty(&self) -> Option<&()>
pub fn empty_mut(&mut self) -> Option<&mut ()>
pub fn state_report(&self) -> Option<&MCUStatus>
pub fn state_report_mut(&mut self) -> Option<&mut MCUStatus>
pub fn ir_data(&self) -> Option<&IRData>
pub fn ir_data_mut(&mut self) -> Option<&mut IRData>
pub fn busy_initializing(&self) -> Option<&()>
pub fn busy_initializing_mut(&mut self) -> Option<&mut ()>
pub fn ir_status(&self) -> Option<&IRStatus>
pub fn ir_status_mut(&mut self) -> Option<&mut IRStatus>
pub fn ir_registers(&self) -> Option<&IRRegistersSlice>
pub fn ir_registers_mut(&mut self) -> Option<&mut IRRegistersSlice>
pub fn nfc_state(&self) -> Option<&()>
pub fn nfc_state_mut(&mut self) -> Option<&mut ()>
pub fn nfc_readdata(&self) -> Option<&()>
pub fn nfc_read_data_mut(&mut self) -> Option<&mut ()>
pub fn empty_awaiting_cmd(&self) -> Option<&()>
pub fn empty_awaiting_cmd_mut(&mut self) -> Option<&mut ()>
Trait Implementations§
source§impl From<MCUReportEnum> for MCUReport
impl From<MCUReportEnum> for MCUReport
source§fn from(x: MCUReportEnum) -> Self
fn from(x: MCUReportEnum) -> Self
Converts to this type from the input type.
source§impl TryFrom<MCUReport> for MCUReportEnum
impl TryFrom<MCUReport> for MCUReportEnum
impl Copy for MCUReport
Auto Trait Implementations§
impl Freeze for MCUReport
impl RefUnwindSafe for MCUReport
impl Send for MCUReport
impl Sync for MCUReport
impl Unpin for MCUReport
impl UnwindSafe for MCUReport
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