Home | History | Annotate | Download | only in mraa

Lines Matching refs:Uart

29 #include "uart.h"
39 * @brief API to UART (enabling only)
41 * This file defines the UART interface for libmraa
43 * @snippet Uart-example.cpp Interesting
45 class Uart
49 * Uart Constructor, takes a pin number which will map directly to the
50 * linux uart number, this 'enables' the uart, nothing more
52 * @param uart the index of the uart set to use
54 Uart(int uart)
56 m_uart = mraa_uart_init(uart);
59 throw std::invalid_argument("Error initialising UART");
64 * Uart Constructor, takes a string to the path of the serial
67 * @param uart the index of the uart set to use
69 Uart(std::string path)
74 throw std::invalid_argument("Error initialising UART");
79 * Uart destructor
81 ~Uart()
184 * to be used on the UART hardware.