pub enum SpiRequest {
Show 17 variants
GetTransferMode,
SetTransferMode {
mode: TransferMode,
},
GetBitsPerWord,
SetBitsPerWord {
bits_per_word: u32,
},
GetMaxSpeed,
SetMaxSpeed {
value: u32,
},
SupportsBidirectionalTransfer,
SupportsTpmPoll,
SetPins {
serial_clock: Option<String>,
host_out_device_in: Option<String>,
host_in_device_out: Option<String>,
chip_select: Option<String>,
gsc_ready: Option<String>,
},
GetMaxTransferCount,
GetMaxTransferSizes,
GetEepromMaxTransferSizes,
SetVoltage {
voltage: Voltage,
},
GetFlashromArgs,
RunTransaction {
transaction: Vec<SpiTransferRequest>,
},
AssertChipSelect,
DeassertChipSelect,
}
Variants§
GetTransferMode
SetTransferMode
Fields
§
mode: TransferMode
GetBitsPerWord
SetBitsPerWord
GetMaxSpeed
SetMaxSpeed
SupportsBidirectionalTransfer
SupportsTpmPoll
SetPins
Fields
GetMaxTransferCount
GetMaxTransferSizes
GetEepromMaxTransferSizes
SetVoltage
GetFlashromArgs
RunTransaction
Fields
§
transaction: Vec<SpiTransferRequest>
AssertChipSelect
DeassertChipSelect
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpiRequest
impl<'de> Deserialize<'de> for SpiRequest
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
Auto Trait Implementations§
impl Freeze for SpiRequest
impl RefUnwindSafe for SpiRequest
impl Send for SpiRequest
impl Sync for SpiRequest
impl Unpin for SpiRequest
impl UnwindSafe for SpiRequest
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