Enum peripherals::example::periph::Mode [−][src]
pub enum Mode {
A,
B,
C,
D,
}Expand description
Some mode for the peripheral
Variants
Trait Implementations
impl From<Mode> for FieldValues<CONFIG>[src]
impl From<Mode> for FieldValues<CONFIG>[src]fn from(value: Mode) -> FieldValues<CONFIG>[src]
fn from(value: Mode) -> FieldValues<CONFIG>[src]Performs the conversion.
impl TryFrom<u16> for Mode[src]
impl TryFrom<u16> for Mode[src]type Error = InvalidValue
type Error = InvalidValueThe type returned in the event of a conversion error.
fn try_from(value: u16) -> Result<Mode, InvalidValue>[src]
fn try_from(value: u16) -> Result<Mode, InvalidValue>[src]Performs the conversion.