Struct ps2::ControllerToHostStatus
source · pub struct ControllerToHostStatus { /* private fields */ }
Implementations§
source§impl ControllerToHostStatus
impl ControllerToHostStatus
sourcepub const fn into_bytes(self) -> [u8; 1]
pub const fn into_bytes(self) -> [u8; 1]
sourcepub const fn from_bytes(bytes: [u8; 1]) -> Self
pub const fn from_bytes(bytes: [u8; 1]) -> Self
Converts the given bytes directly into the bitfield struct.
source§impl ControllerToHostStatus
impl ControllerToHostStatus
sourcepub fn mouse_output_buffer_full(&self) -> <bool as Specifier>::InOut
pub fn mouse_output_buffer_full(&self) -> <bool as Specifier>::InOut
Returns the value of mouse_output_buffer_full.
Similar to output_buffer_full
, except for mouse
sourcepub fn mouse_output_buffer_full_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn mouse_output_buffer_full_or_err( &self ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of mouse_output_buffer_full.
#Errors
If the returned value contains an invalid bit pattern for mouse_output_buffer_full.
Similar to output_buffer_full
, except for mouse
sourcepub fn with_mouse_output_buffer_full(
self,
new_val: <bool as Specifier>::InOut
) -> Self
pub fn with_mouse_output_buffer_full( self, new_val: <bool as Specifier>::InOut ) -> Self
Returns a copy of the bitfield with the value of mouse_output_buffer_full set to the given value.
#Panics
If the given value is out of bounds for mouse_output_buffer_full.
Similar to output_buffer_full
, except for mouse
sourcepub fn with_mouse_output_buffer_full_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_mouse_output_buffer_full_checked( self, new_val: <bool as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of mouse_output_buffer_full set to the given value.
#Errors
If the given value is out of bounds for mouse_output_buffer_full.
Similar to output_buffer_full
, except for mouse
sourcepub fn set_mouse_output_buffer_full(
&mut self,
new_val: <bool as Specifier>::InOut
)
pub fn set_mouse_output_buffer_full( &mut self, new_val: <bool as Specifier>::InOut )
Sets the value of mouse_output_buffer_full to the given value.
#Panics
If the given value is out of bounds for mouse_output_buffer_full.
Similar to output_buffer_full
, except for mouse
sourcepub fn set_mouse_output_buffer_full_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_mouse_output_buffer_full_checked( &mut self, new_val: <bool as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of mouse_output_buffer_full to the given value.
#Errors
If the given value is out of bounds for mouse_output_buffer_full.
Similar to output_buffer_full
, except for mouse