class::hal::UartPinAssignment

class hal::UartPinAssignment
  : public hal::PinAssignment< uart_pin_assignment_t >

This class allows simple manipulation of the uart_pin_assignment_t.

UartPinAssignment pin_assignment;
pin_assignment->tx = mcu_pin(0,1);
pin_assignment->rx = mcu_pin(0,1);

Uart uart(0);
uart.set_attr(Uart::FLAG_SET_LINE_CODING, 115200, 8, pin_assignment);

See also: hal::Uart

X

Thanks for Coming!

Subscribe to news and updates