Struct joycon_sys::output::SubcommandRequest
source · #[repr(packed(1))]pub struct SubcommandRequest { /* private fields */ }
Implementations§
source§impl SubcommandRequest
impl SubcommandRequest
pub fn new() -> Self
pub fn id(&self) -> RawId<SubcommandId>
pub fn get_only_controller_state(&self) -> Option<&()>
pub fn get_only_controller_state_mut(&mut self) -> Option<&mut ()>
pub fn bluetooth_manual_pairing(&self) -> Option<&()>
pub fn bluetooth_manual_pairing_mut(&mut self) -> Option<&mut ()>
pub fn request_device_info(&self) -> Option<&()>
pub fn request_device_info_mut(&mut self) -> Option<&mut ()>
pub fn set_input_report_mode(&self) -> Option<&RawId<InputReportId>>
pub fn set_input_report_mode_mut(&mut self) -> Option<&mut RawId<InputReportId>>
pub fn set_shipment_mode(&self) -> Option<&RawId<Bool>>
pub fn set_shipment_mode_mut(&mut self) -> Option<&mut RawId<Bool>>
pub fn spi_read(&self) -> Option<&SPIReadRequest>
pub fn spi_read_mut(&mut self) -> Option<&mut SPIReadRequest>
pub fn spi_write(&self) -> Option<&SPIWriteRequest>
pub fn spi_write_mut(&mut self) -> Option<&mut SPIWriteRequest>
pub fn set_mcu_conf(&self) -> Option<&MCUCommand>
pub fn set_mcu_conf_mut(&mut self) -> Option<&mut MCUCommand>
pub fn set_mcu_state(&self) -> Option<&RawId<MCUMode>>
pub fn set_mcu_state_mut(&mut self) -> Option<&mut RawId<MCUMode>>
pub fn set_unknown_data(&self) -> Option<&[u8; 38]>
pub fn set_unknown_data_mut(&mut self) -> Option<&mut [u8; 38]>
pub fn set_player_lights(&self) -> Option<&PlayerLights>
pub fn set_player_lights_mut(&mut self) -> Option<&mut PlayerLights>
pub fn set_home_light(&self) -> Option<&HomeLight>
pub fn set_home_light_mut(&mut self) -> Option<&mut HomeLight>
pub fn set_imu_mode(&self) -> Option<&RawId<IMUMode>>
pub fn set_imu_mode_mut(&mut self) -> Option<&mut RawId<IMUMode>>
pub fn set_imu_sens(&self) -> Option<&Sensitivity>
pub fn set_imu_sens_mut(&mut self) -> Option<&mut Sensitivity>
pub fn enable_vibration(&self) -> Option<&RawId<Bool>>
pub fn enable_vibration_mut(&mut self) -> Option<&mut RawId<Bool>>
pub fn maybe_accessory(&self) -> Option<&AccessoryCommand>
pub fn maybe_accessory_mut(&mut self) -> Option<&mut AccessoryCommand>
pub fn unknown0x59(&self) -> Option<&()>
pub fn unknown0x59_mut(&mut self) -> Option<&mut ()>
pub fn unknown0x5a(&self) -> Option<&[u8; 38]>
pub fn unknown0x5a_mut(&mut self) -> Option<&mut [u8; 38]>
pub fn unknown0x5b(&self) -> Option<&()>
pub fn unknown0x5b_mut(&mut self) -> Option<&mut ()>
pub fn unknown0x5c(&self) -> Option<&[u8; 38]>
pub fn unknown0x5c_mut(&mut self) -> Option<&mut [u8; 38]>
source§impl SubcommandRequest
impl SubcommandRequest
pub fn disable_shipment_mode() -> Self
pub fn subcmd_0x59() -> Self
pub fn subcmd_0x5a() -> Self
pub fn subcmd_0x5b() -> Self
pub fn subcmd_0x5c_0() -> Self
pub fn subcmd_0x5c_6() -> Self
Trait Implementations§
source§impl Clone for SubcommandRequest
impl Clone for SubcommandRequest
source§fn clone(&self) -> SubcommandRequest
fn clone(&self) -> SubcommandRequest
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 moresource§impl Debug for SubcommandRequest
impl Debug for SubcommandRequest
source§impl From<AccessoryCommand> for SubcommandRequest
impl From<AccessoryCommand> for SubcommandRequest
source§fn from(accessory_cmd: AccessoryCommand) -> Self
fn from(accessory_cmd: AccessoryCommand) -> Self
Converts to this type from the input type.
source§impl From<HomeLight> for SubcommandRequest
impl From<HomeLight> for SubcommandRequest
source§impl From<MCUCommand> for SubcommandRequest
impl From<MCUCommand> for SubcommandRequest
source§fn from(mcu_cmd: MCUCommand) -> Self
fn from(mcu_cmd: MCUCommand) -> Self
Converts to this type from the input type.
source§impl From<PlayerLights> for SubcommandRequest
impl From<PlayerLights> for SubcommandRequest
source§fn from(player_lights: PlayerLights) -> Self
fn from(player_lights: PlayerLights) -> Self
Converts to this type from the input type.
source§impl From<SPIReadRequest> for SubcommandRequest
impl From<SPIReadRequest> for SubcommandRequest
source§fn from(spi_read: SPIReadRequest) -> Self
fn from(spi_read: SPIReadRequest) -> Self
Converts to this type from the input type.
source§impl From<SPIWriteRequest> for SubcommandRequest
impl From<SPIWriteRequest> for SubcommandRequest
source§fn from(spi_write: SPIWriteRequest) -> Self
fn from(spi_write: SPIWriteRequest) -> Self
Converts to this type from the input type.
source§impl From<Sensitivity> for SubcommandRequest
impl From<Sensitivity> for SubcommandRequest
source§fn from(imu_sensitivity: Sensitivity) -> Self
fn from(imu_sensitivity: Sensitivity) -> Self
Converts to this type from the input type.
source§impl From<SubcommandRequest> for OutputReport
impl From<SubcommandRequest> for OutputReport
source§fn from(subcmd: SubcommandRequest) -> Self
fn from(subcmd: SubcommandRequest) -> Self
Converts to this type from the input type.
source§impl From<SubcommandRequestEnum> for SubcommandRequest
impl From<SubcommandRequestEnum> for SubcommandRequest
source§fn from(x: SubcommandRequestEnum) -> Self
fn from(x: SubcommandRequestEnum) -> Self
Converts to this type from the input type.
source§impl TryFrom<SubcommandRequest> for SubcommandRequestEnum
impl TryFrom<SubcommandRequest> for SubcommandRequestEnum
§type Error = SubcommandRequest
type Error = SubcommandRequest
The type returned in the event of a conversion error.
impl Copy for SubcommandRequest
Auto Trait Implementations§
impl Freeze for SubcommandRequest
impl RefUnwindSafe for SubcommandRequest
impl Send for SubcommandRequest
impl Sync for SubcommandRequest
impl Unpin for SubcommandRequest
impl UnwindSafe for SubcommandRequest
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