mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-12 01:25:59 +00:00
25 lines
559 B
C++
25 lines
559 B
C++
#ifndef STA_CORE_UART_UART_HPP
|
|
#define STA_CORE_UART_UART_HPP
|
|
|
|
#include <sta/bus/interface.hpp>
|
|
#include <sta/bus/uart/settings.hpp>
|
|
|
|
namespace sta
|
|
{
|
|
class UART : public Interface
|
|
{
|
|
public:
|
|
UART(const UARTSettings & settings, Mutex * mutex=nullptr);
|
|
|
|
/**
|
|
* @brief Get %UART interface settings.
|
|
*
|
|
* @return %UART settings
|
|
*/
|
|
const UARTSettings & settings();
|
|
private:
|
|
UARTSettings settings_; /**< %UART settings */
|
|
};
|
|
} // namespace sta
|
|
|
|
#endif // STA_CORE_UART_UART_HPP
|