Enum MuxedPads

Source
#[repr(u32)]
pub enum MuxedPads {
Show 47 variants Ioa0 = 0, Ioa1 = 1, Ioa2 = 2, Ioa3 = 3, Ioa4 = 4, Ioa5 = 5, Ioa6 = 6, Ioa7 = 7, Ioa8 = 8, Iob0 = 9, Iob1 = 10, Iob2 = 11, Iob3 = 12, Iob4 = 13, Iob5 = 14, Iob6 = 15, Iob7 = 16, Iob8 = 17, Iob9 = 18, Iob10 = 19, Iob11 = 20, Iob12 = 21, Ioc0 = 22, Ioc1 = 23, Ioc2 = 24, Ioc3 = 25, Ioc4 = 26, Ioc5 = 27, Ioc6 = 28, Ioc7 = 29, Ioc8 = 30, Ioc9 = 31, Ioc10 = 32, Ioc11 = 33, Ioc12 = 34, Ior0 = 35, Ior1 = 36, Ior2 = 37, Ior3 = 38, Ior4 = 39, Ior5 = 40, Ior6 = 41, Ior7 = 42, Ior10 = 43, Ior11 = 44, Ior12 = 45, Ior13 = 46,
}
Expand description

Muxed Pad Selects

Variants§

§

Ioa0 = 0

§

Ioa1 = 1

§

Ioa2 = 2

§

Ioa3 = 3

§

Ioa4 = 4

§

Ioa5 = 5

§

Ioa6 = 6

§

Ioa7 = 7

§

Ioa8 = 8

§

Iob0 = 9

§

Iob1 = 10

§

Iob2 = 11

§

Iob3 = 12

§

Iob4 = 13

§

Iob5 = 14

§

Iob6 = 15

§

Iob7 = 16

§

Iob8 = 17

§

Iob9 = 18

§

Iob10 = 19

§

Iob11 = 20

§

Iob12 = 21

§

Ioc0 = 22

§

Ioc1 = 23

§

Ioc2 = 24

§

Ioc3 = 25

§

Ioc4 = 26

§

Ioc5 = 27

§

Ioc6 = 28

§

Ioc7 = 29

§

Ioc8 = 30

§

Ioc9 = 31

§

Ioc10 = 32

§

Ioc11 = 33

§

Ioc12 = 34

§

Ior0 = 35

§

Ior1 = 36

§

Ior2 = 37

§

Ior3 = 38

§

Ior4 = 39

§

Ior5 = 40

§

Ior6 = 41

§

Ior7 = 42

§

Ior10 = 43

§

Ior11 = 44

§

Ior12 = 45

§

Ior13 = 46

Trait Implementations§

Source§

impl Clone for MuxedPads

Source§

fn clone(&self) -> MuxedPads

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl From<MuxedPads> for PinmuxInsel

MuxedPads names and values overlap with PinmuxInsel, function below is used to convert it to valid PinmuxInsel. OpenTitan documentation reference: https://opentitan.org/book/hw/ip/pinmux/doc/programmers_guide.html#pinmux-configuration

Source§

fn from(pad: MuxedPads) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for MuxedPads

Source§

fn eq(&self, other: &MuxedPads) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl SelectOutput for MuxedPads

Source§

fn connect_output(self, output: PinmuxOutsel)

Connect particular pad to internal peripheral
Source§

fn connect_low(self)

Connect particular pad output to always low
Source§

fn connect_high(self)

Connect particular pad output to always high
Source§

fn connect_high_z(self)

This function disconnect pad from peripheral and set it to High-Impedance state
Source§

fn lock(self)

Lock selection of output for particular pad
Source§

fn get_selector(self) -> PinmuxOutsel

Get value of current output selection
Source§

impl TryFrom<u32> for MuxedPads

Source§

type Error = u32

The type returned in the event of a conversion error.
Source§

fn try_from(val: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for MuxedPads

Source§

impl Eq for MuxedPads

Source§

impl StructuralPartialEq for MuxedPads

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.