#[repr(C)]pub struct Argument(/* private fields */);
Expand description
Argumentument for CMD23.
Implementations§
Source§impl Argument
impl Argument
Sourcepub const fn packed(&self) -> bool
pub const fn packed(&self) -> bool
Getter for packed field of Argument.
Indicates whether the command is part of a packed command.
Sourcepub fn set_packed(&mut self, val: bool)
pub fn set_packed(&mut self, val: bool)
Setter for packed field of Argument.
Indicates whether the command is part of a packed command.
Sourcepub const fn block_count(&self) -> u16
pub const fn block_count(&self) -> u16
Getter for block_count field of Argument.
Specifies the block count for read/write block commands.
Sourcepub fn set_block_count(&mut self, val: u32)
pub fn set_block_count(&mut self, val: u32)
Setter for block_count field of Argument.
Specifies the block count for read/write block commands.
Source§impl Argument
impl Argument
Sourcepub const fn try_from_bits(val: u32) -> Result<Self>
pub const fn try_from_bits(val: u32) -> Result<Self>
Sourcepub const fn reliable_write_request(&self) -> bool
pub const fn reliable_write_request(&self) -> bool
Indicates whether the reliable writer feature is enable for a read/write block command.
§Note
Only relevant for non-packed commands.
Sourcepub const fn tag_request(&self) -> bool
pub const fn tag_request(&self) -> bool
Indicates if the request is tagged, mutually exclusive to Context ID
.
§Note
Only relevant for non-packed commands.
pub fn set_tag_request(&mut self, val: bool)
Sourcepub const fn context_id(&self) -> u8
pub const fn context_id(&self) -> u8
Gets the Context ID
of the request, mutually exclusive to TAG_REQUEST
.
§Note
Only relevant for non-packed commands.
Sourcepub fn set_context_id(&mut self, id: u8)
pub fn set_context_id(&mut self, id: u8)
Sets the Context ID
of the request, mutually exclusive to TAG_REQUEST
.
§Note
Only relevant for non-packed commands.
Sourcepub const fn try_from_bytes(val: &[u8]) -> Result<Self>
pub const fn try_from_bytes(val: &[u8]) -> Result<Self>
Attempts to convert a byte slice into an Argument
.