pub struct CommandRegister {
pub command: Command,
}Fields§
§command: CommandImplementations§
Source§impl CommandRegister
impl CommandRegister
Sourcepub fn packed_struct_display_formatter<'a>(
&'a self,
) -> PackedStructDisplay<'a, Self, [u8; 4]>
pub fn packed_struct_display_formatter<'a>( &'a self, ) -> PackedStructDisplay<'a, Self, [u8; 4]>
Display formatter for console applications
Trait Implementations§
Source§impl Debug for CommandRegister
impl Debug for CommandRegister
Source§impl Default for CommandRegister
impl Default for CommandRegister
Source§fn default() -> CommandRegister
fn default() -> CommandRegister
Returns the “default value” for a type. Read more
Source§impl Display for CommandRegister
impl Display for CommandRegister
Source§impl PackedStruct<[u8; 4]> for CommandRegister
Structure that can be packed an unpacked into 4 bytes.
impl PackedStruct<[u8; 4]> for CommandRegister
Structure that can be packed an unpacked into 4 bytes.
| Bit, MSB0 | Name | Type |
| 27:31 | command | Command |
Source§impl PackedStructDebug for CommandRegister
impl PackedStructDebug for CommandRegister
Source§impl PackedStructInfo for CommandRegister
impl PackedStructInfo for CommandRegister
Source§fn packed_bits() -> usize
fn packed_bits() -> usize
Number of bits that this structure occupies when being packed.
Source§impl PackedStructSlice for CommandRegister
impl PackedStructSlice for CommandRegister
Source§fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
Pack the structure into an output buffer.
Source§fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
Unpack the structure from a buffer.
Source§fn packed_bytes() -> usize
fn packed_bytes() -> usize
Number of bytes that this structure demands for packing or unpacking.
Source§fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
Pack the structure into a new byte vector.
Source§impl Register for CommandRegister
impl Register for CommandRegister
fn register_address(&self) -> RegisterAddress
Auto Trait Implementations§
impl Freeze for CommandRegister
impl RefUnwindSafe for CommandRegister
impl Send for CommandRegister
impl Sync for CommandRegister
impl Unpin for CommandRegister
impl UnwindSafe for CommandRegister
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