sta-core/include/sta/bus/uart/settings.hpp
2024-01-07 23:23:35 +01:00

36 lines
529 B
C++

#ifndef STA_CORE_UART_SETTINGS_HPP
#define STA_CORE_UART_SETTINGS_HPP
#include <stdint.h>
/**
* @defgroup sta_core_uart UART
* @ingroup sta_core
* @brief UART interface.
*/
namespace sta
{
/**
* @brief UART modes of operation.
*/
enum class UARTMode
{
RX,
TX,
RX_TX
};
/**
* @brief UART settings.
*/
struct UARTSettings
{
/// @brief Mode of operation.
UARTMode mode;
};
} // namespace sta
#endif // STA_CORE_UART_SETTINGS_HPP