pub struct Flexio { /* private fields */ }Expand description
Flexible I/O: four shifters, four timers, 32 pins, four external triggers. Register accesses are 32-bit even when a field is narrower.
Implementations§
Source§impl Flexio
impl Flexio
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn ctrl(self) -> Reg<Ctrl, RW>
pub const fn ctrl(self) -> Reg<Ctrl, RW>
FLEXIO Control. FASTACC requires functional clock >= bus clock. SWRST leaves CTRL intact; other accesses are ignored until software clears it and clock-domain reset completes.
Sourcepub const fn shiftstat(self) -> Reg<Shiftstat, RW>
pub const fn shiftstat(self) -> Reg<Shiftstat, RW>
Shifter Status. Per-shifter flag mask; clearing semantics depend on shifter mode. Do not assume every mode supports write-one-to-clear.
Sourcepub const fn shifterr(self) -> Reg<Shifterr, RW>
pub const fn shifterr(self) -> Reg<Shifterr, RW>
Shifter Error. Per-shifter error mask, write one to clear. In Match Continuous mode, reading the corresponding SHIFTBUF additionally clears SEF; reading SHIFTERR itself is not that clearing operation.
Sourcepub const fn timersden(self) -> Reg<Timersden, RW>
pub const fn timersden(self) -> Reg<Timersden, RW>
Timer Status DMA Enable. Timer DMA requests remain asserted until the required TIMCMP read/write is performed.
Sourcepub const fn shiftstate(self) -> Reg<Shiftstate, RW>
pub const fn shiftstate(self) -> Reg<Shiftstate, RW>
Shifter State.
Sourcepub const fn pinoutdis(self) -> Reg<Pinoutdis, RW>
pub const fn pinoutdis(self) -> Reg<Pinoutdis, RW>
Direct pin command: clears both pin output data and output enable.
Sourcepub const fn pinoutclr(self) -> Reg<Pinoutclr, RW>
pub const fn pinoutclr(self) -> Reg<Pinoutclr, RW>
Direct pin command: clears data and enables output for the selected pins.
Sourcepub const fn pinoutset(self) -> Reg<Pinoutset, RW>
pub const fn pinoutset(self) -> Reg<Pinoutset, RW>
Direct pin command: sets data and enables output for the selected pins.
Sourcepub const fn pinouttog(self) -> Reg<Pinouttog, RW>
pub const fn pinouttog(self) -> Reg<Pinouttog, RW>
Direct pin command: toggles data and enables output for the selected pins.
Sourcepub const fn shiftbuf(self, n: usize) -> Reg<Shiftbuf, RW>
pub const fn shiftbuf(self, n: usize) -> Reg<Shiftbuf, RW>
Shifter Buffer. Receive/Match Store reads require SSF set. Swapped buffer views alias this buffer; they are not independent storage.
Sourcepub const fn shiftbufbis(self, n: usize) -> Reg<Shiftbufbis, RW>
pub const fn shiftbufbis(self, n: usize) -> Reg<Shiftbufbis, RW>
Shifter Buffer Bit Swapped.
Sourcepub const fn shiftbufbys(self, n: usize) -> Reg<Shiftbufbys, RW>
pub const fn shiftbufbys(self, n: usize) -> Reg<Shiftbufbys, RW>
Shifter Buffer Byte Swapped.
Sourcepub const fn shiftbufbbs(self, n: usize) -> Reg<Shiftbufbbs, RW>
pub const fn shiftbufbbs(self, n: usize) -> Reg<Shiftbufbbs, RW>
Shifter Buffer Bit Byte Swapped.
Sourcepub const fn timcmp(self, n: usize) -> Reg<Timcmp, RW>
pub const fn timcmp(self, n: usize) -> Reg<Timcmp, RW>
Timer Compare. Input-capture reads require TSF set. The data field is 16-bit, but accesses remain 32-bit.
Sourcepub const fn shiftbufnbs(self, n: usize) -> Reg<Shiftbufnbs, RW>
pub const fn shiftbufnbs(self, n: usize) -> Reg<Shiftbufnbs, RW>
Shifter Buffer Nibble Byte Swapped.
Sourcepub const fn shiftbufhws(self, n: usize) -> Reg<Shiftbufhws, RW>
pub const fn shiftbufhws(self, n: usize) -> Reg<Shiftbufhws, RW>
Shifter Buffer Halfword Swapped.
Sourcepub const fn shiftbufnis(self, n: usize) -> Reg<Shiftbufnis, RW>
pub const fn shiftbufnis(self, n: usize) -> Reg<Shiftbufnis, RW>
Shifter Buffer Nibble Swapped.
Sourcepub const fn shiftbufoes(self, n: usize) -> Reg<Shiftbufoes, RW>
pub const fn shiftbufoes(self, n: usize) -> Reg<Shiftbufoes, RW>
Shifter Buffer Odd Even Swapped.
Sourcepub const fn shiftbufeos(self, n: usize) -> Reg<Shiftbufeos, RW>
pub const fn shiftbufeos(self, n: usize) -> Reg<Shiftbufeos, RW>
Shifter Buffer Even Odd Swapped.
Sourcepub const fn shiftbufhbs(self, n: usize) -> Reg<Shiftbufhbs, RW>
pub const fn shiftbufhbs(self, n: usize) -> Reg<Shiftbufhbs, RW>
Shifter Buffer Halfword Byte Swapped.