Struct driver_pal::hal::PinConfig
source · pub struct PinConfig {
pub chip_select: u64,
pub reset: u64,
pub busy: Option<u64>,
pub ready: Option<u64>,
pub led0: Option<u64>,
pub led1: Option<u64>,
}
Expand description
Pin configuration object
Fields§
§chip_select: u64
Chip Select (output) pin
reset: u64
Reset (output) pin
busy: Option<u64>
Busy (input) pin
ready: Option<u64>
Ready (input) pin
led0: Option<u64>
LED 0 (output) pin
led1: Option<u64>
LED 1 (output) pin
Trait Implementations§
source§impl CommandFactory for PinConfig
impl CommandFactory for PinConfig
source§impl<'de> Deserialize<'de> for PinConfig
impl<'de> Deserialize<'de> for PinConfig
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
source§impl FromArgMatches for PinConfig
impl FromArgMatches for PinConfig
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl Parser for PinConfig
impl Parser for PinConfig
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error.
Auto Trait Implementations§
impl Freeze for PinConfig
impl RefUnwindSafe for PinConfig
impl Send for PinConfig
impl Sync for PinConfig
impl Unpin for PinConfig
impl UnwindSafe for PinConfig
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