pub enum DynFunction {
Show 14 variants
Xip,
Spi,
Uart,
I2c,
Pwm,
Sio(DynSioConfig),
Pio0,
Pio1,
Pio2,
Clock,
XipCs1,
Usb,
UartAux,
Null,
}Expand description
Describes the function currently assigned to a pin with a dynamic type.
A ‘pin’ on the RP2350 can be connected to different parts of the chip internally - for example, it could be configured as a GPIO pin and connected to the SIO block, or it could be configured as a UART pin and connected to the UART block.
Variants§
Xip
The ‘XIP’ (or Execute-in-place) function, which means talking to the QSPI Flash.
Spi
The ‘SPI’ (or serial-peripheral-interface) function.
Uart
The ‘UART’ (or serial-port) function.
I2c
The ‘I2C’ (or inter-integrated circuit) function. This is sometimes also called TWI (for two-wire-interface).
Pwm
The ‘PWM’ (or pulse-width-modulation) function.
Sio(DynSioConfig)
The ‘SIO’ (or single-cycle input-output) function. This is the function to use for ‘manually’ controlling the GPIO.
Pio0
The ‘PIO’ (or programmable-input-output) function for the PIO0 peripheral block.
Pio1
The ‘PIO’ (or programmable-input-output) function for the PIO1 peripheral block.
Pio2
The ‘PIO’ (or programmable-input-output) function for the PIO2 peripheral block.
Clock
The ‘Clock’ function. This can be used to input or output clock references to or from the rp235x.
XipCs1
The XIP CS1 function.
Usb
The ‘USB’ function. Only VBUS detect, VBUS enable and overcurrent detect are configurable. Other USB io have dedicated pins.
UartAux
The auxilliary UART function lets you use a UART CTS as UART TX and a UART RTS pin as UART RX.
Null
The ‘Null’ function for unused pins.
Trait Implementations§
Source§impl Clone for DynFunction
impl Clone for DynFunction
Source§fn clone(&self) -> DynFunction
fn clone(&self) -> DynFunction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DynFunction
impl Debug for DynFunction
Source§impl PartialEq for DynFunction
impl PartialEq for DynFunction
impl Copy for DynFunction
impl Eq for DynFunction
impl Function for DynFunction
impl StructuralPartialEq for DynFunction
Auto Trait Implementations§
impl Freeze for DynFunction
impl RefUnwindSafe for DynFunction
impl Send for DynFunction
impl Sync for DynFunction
impl Unpin for DynFunction
impl UnwindSafe for DynFunction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more