#[repr(u8)]pub enum PortFunction {
Show 16 variants
HiZ = 0,
Agt = 1,
Gpt0 = 2,
Gpt1 = 3,
Sci0 = 4,
Sci1 = 5,
Spi = 6,
I2c = 7,
Kint = 8,
ClkCmpRtc = 9,
CacAdc = 10,
Ctsu = 12,
Slcdc = 13,
Can = 16,
Ssie = 18,
UsbFs = 19,
}Expand description
Additional, non-GPIO, functions that can be assigned to a pin.
Not every function applies to every pin. See tables 19.5–19.17 in the reference manual for details.
Variants§
HiZ = 0
Hi-Z / JTAG / SWD
Agt = 1
Low-Power Asynchronous General Purpose Timer
Gpt0 = 2
General PWM Timer
Gpt1 = 3
General PWM Timer
Sci0 = 4
Serial Communications Interface
Sci1 = 5
Serial Communications Interface
Spi = 6
Serial Peripheral Interface
I2c = 7
Inter-Integrated Circuit Bus Interface
Kint = 8
Key Interrupt Function
ClkCmpRtc = 9
CLKOUT / Analog Comparator / Real-Time Clock
CacAdc = 10
Clock Frequency Accuracy / ADC14
Ctsu = 12
Capacitive Touch
Slcdc = 13
Segment LCD
Can = 16
Controller Area Network Bus
Ssie = 18
Serial Sound Interface Enhanced
UsbFs = 19
USB Full-Speed
Trait Implementations§
Source§impl Clone for PortFunction
impl Clone for PortFunction
impl Copy for PortFunction
Source§impl From<PortFunction> for PortFunction
impl From<PortFunction> for PortFunction
Source§fn from(value: PortFunction) -> Self
fn from(value: PortFunction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for PortFunction
impl Freeze for PortFunction
impl Move for PortFunction
impl RefUnwindSafe for PortFunction
impl Send for PortFunction
impl Sync for PortFunction
impl Unpin for PortFunction
impl UnsafeUnpin for PortFunction
impl UnwindSafe for PortFunction
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