pub struct Cmd { /* private fields */ }
Implementations§
Source§impl Cmd
impl Cmd
Sourcepub fn to_bytes(&self) -> Result<&[u8]>
pub fn to_bytes(&self) -> Result<&[u8]>
Method use to get binary representation of the command for use on “plain” SPI. Will be used in cases where the transport backend does not have specialied EEPROM/Flash communication primitives.
pub fn get_opcode_len(&self) -> u8
pub fn get_opcode(&self) -> &[u8] ⓘ
pub fn get_address_len(&self) -> u8
pub fn get_address(&self) -> u32
pub fn get_dummy_cycles(&self) -> u8
pub fn get_switch(&self) -> Switch
pub fn get_width(&self) -> DataWidth
pub fn get_double_transfer_rate(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cmd
impl<'de> Deserialize<'de> for Cmd
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Cmd
Auto Trait Implementations§
impl Freeze for Cmd
impl RefUnwindSafe for Cmd
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnwindSafe for Cmd
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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