Module rp2040_hal::sio
source · Expand description
Single Cycle Input and Output (SIO)
To be able to partition parts of the SIO block to other modules:
use rp2040_hal::{gpio::Pins, pac, sio::Sio};
let mut peripherals = pac::Peripherals::take().unwrap();
let sio = Sio::new(peripherals.SIO);
And then for example
let pins = Pins::new(peripherals.IO_BANK0, peripherals.PADS_BANK0, sio.gpio_bank0, &mut peripherals.RESETS);
Structs§
- Result of divide/modulo operation
- Marker struct for ownership of divide/modulo module
- Interpolator Interp0
- The lane 0 of Interp0
- The lane 1 of Interp0
- Interpolator Interp1
- The lane 0 of Interp1
- The lane 1 of Interp1
- Configuration struct for one lane of the interpolator
- Struct containing ownership markers for managing ownership of the SIO registers.
- Marker struct for ownership of SIO FIFO
- Marker struct for ownership of SIO gpio bank0
- Marker struct for ownership of SIO gpio qspi
- Hardware based spinlock.
Enums§
- Id of the core.
Traits§
- Trait representing the functionality of an interpolator.
- Trait representing the functionality of a single lane of an interpolator.
- This type is just used to limit us to Spinlocks
0..=31
Functions§
- Free all spinlocks, regardless of their current status
- Returns the current state of the spinlocks. Each index corresponds to the associated spinlock, e.g. if index
5
is set totrue
, it means thatSpinlock5
is currently locked.
Type Aliases§
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number $id
- Spinlock number 31 - only public if critical-section-impl is not enabled