Struct atsame54_xpro::pins::UART_ [−][src]
Expand description
UART pins
Fields
tx: Pb25<Input<Floating>>
rx: Pb24<Input<Floating>>
Implementations
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
baud: F,
sercom2: SERCOM2,
mclk: &mut MCLK,
port: &mut Port
) -> UART2<Sercom2Pad1<Pb24<PfD>>, Sercom2Pad0<Pb25<PfD>>, (), ()>
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
baud: F,
sercom2: SERCOM2,
mclk: &mut MCLK,
port: &mut Port
) -> UART2<Sercom2Pad1<Pb24<PfD>>, Sercom2Pad0<Pb25<PfD>>, (), ()>
Convenience for setting up the labelled TX, RX pins to operate as a UART device at the specified baud rate.