Struct grand_central_m4::pins::UART2_ [−][src]
Expand description
UART2 pins
Fields
tx: Pc22<Input<Floating>>
rx: Pc23<Input<Floating>>
Implementations
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
baud: F,
sercom1: SERCOM1,
mclk: &mut MCLK,
port: &mut Port
) -> UART1<Sercom1Pad1<Pc23<PfC>>, Sercom1Pad0<Pc22<PfC>>, (), ()>
pub fn init<F: Into<Hertz>>(
self,
clocks: &mut GenericClockController,
baud: F,
sercom1: SERCOM1,
mclk: &mut MCLK,
port: &mut Port
) -> UART1<Sercom1Pad1<Pc23<PfC>>, Sercom1Pad0<Pc22<PfC>>, (), ()>
Convenience for setting up the labelled TX, RX pins to operate as a UART device at the specified baud rate.