#[repr(u8)]pub enum FUNCSEL_A {
JTAG = 0,
SPI = 1,
UART = 2,
I2C = 3,
PWM = 4,
SIO = 5,
PIO0 = 6,
PIO1 = 7,
CLOCK = 8,
USB = 9,
NULL = 31,
}
Expand description
0-31 -> selects pin function according to the GPIO table. Not all options are valid for all GPIO pins.
Value on reset: 31
Variants§
JTAG = 0
0: Connect to JTAG peripheral
SPI = 1
1: Connect to matching SPI peripheral
UART = 2
2: Connect to matching UART peripheral
I2C = 3
3: Connect to matching I2C peripheral
PWM = 4
4: Connect to matching PWM peripheral
SIO = 5
5: Use as a GPIO pin (connect to SIO peripheral)
PIO0 = 6
6: Connect to PIO0 peripheral
PIO1 = 7
7: Connect to PIO1 peripheral
CLOCK = 8
8: Connect to Clock peripheral
USB = 9
9: Connect to USB peripheral
NULL = 31
31: Connect to nothing
Trait Implementations§
impl Copy for FUNCSEL_A
impl Eq for FUNCSEL_A
impl StructuralPartialEq for FUNCSEL_A
Auto Trait Implementations§
impl Freeze for FUNCSEL_A
impl RefUnwindSafe for FUNCSEL_A
impl Send for FUNCSEL_A
impl Sync for FUNCSEL_A
impl Unpin for FUNCSEL_A
impl UnwindSafe for FUNCSEL_A
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)