/// Returns an iterator over the possible serial transmission pins for this port.
Returns an iterator over the possible serial transmission pins for this port.
Returns an iterator over the possible serial transmission pins for this port .
pub fn serial_tx(port: &Port) -> Box<dyn Iterator<Item = PeripheralPin>> {
    match port {
        Port::Stm32F412 => Box::new(IntoIter::new([
            PeripheralPin::new(Cow::from("USART1"), Cow::from("a"), 9, 7),
            PeripheralPin::new(Cow::from("USART1"), Cow::from("b"), 6, 7),
            PeripheralPin::new(Cow::from("USART2"), Cow::from("a"), 2, 7),
            PeripheralPin::new(Cow::from("USART2"), Cow::from("d"), 5, 7),
            PeripheralPin::new(Cow::from("USART1"), Cow::from("a"), 15, 6),
            PeripheralPin::new(Cow::from("USART6"), Cow::from("c"), 6, 8),
            PeripheralPin::new(Cow::from("USART6"), Cow::from("a"), 11, 8),
            PeripheralPin::new(Cow::from("USART6"), Cow::from("g"), 14, 8),
        ])),
        Port::Wgm160P => Box::new(None.into_iter()),
    }
}
pub fn serial_tx ( port : & Port ) -> Box < dyn Iterator < Item = PeripheralPin > > { match port { Port :: Stm32F412 => Box :: new ( IntoIter :: new ( [ PeripheralPin :: new ( Cow :: from ( " " ) , Cow :: from ( " " ) , 9 , 7 ) , PeripheralPin :: new ( Cow :: from ( " " ) , Cow :: from ( " " ) , 6 , 7 ) , PeripheralPin :: new ( Cow :: from ( " " ) , Cow :: from ( " " ) , 2 , 7 ) , PeripheralPin :: new ( Cow :: from ( " " ) , Cow :: from ( " " ) , 5 , 7 ) , PeripheralPin :: new ( Cow :: from ( " " ) , Cow :: from ( " " ) , 15 , 6 ) , PeripheralPin :: new ( Cow :: from ( " " ) , Cow :: from ( " " ) , 6 , 8 ) , PeripheralPin :: new ( Cow :: from ( " " ) , Cow :: from ( " " ) , 11 , 8 ) , PeripheralPin :: new ( Cow :: from ( " " ) , Cow :: from ( " " ) , 14 , 8 ) , ] ) ) , Port :: Wgm160P => Box :: new ( None . into_iter ( ) ) , } }
Returns an iterator over the possible serial transmission pins for this port.
Returns an iterator over the possible serial transmission pins for this port .
port
&Port