This commit is contained in:
Mysteo91
2023-08-11 16:04:03 +03:00
parent e40a82a218
commit c6211b1db1
7 changed files with 134 additions and 30 deletions

View File

@@ -6,7 +6,7 @@
#define READER_MAIN_PROG_UART_BRIDGE_HPP
#include "circular_buffer.hpp"
#include "usart.h"
#include "reader_communication.h"
#define BUF_SIZE 1024U
#define MAX_QUEUE 16
@@ -15,8 +15,8 @@ class UartBridge{
public:
UartBridge(bool isOn, USART_TypeDef *uart1, USART_TypeDef *uart2, uint16_t baudRate1,
uint16_t baudRate2);
Circular_Buffer<std::string_view> *uart1Buf;
Circular_Buffer<std::string_view> *uart2Buf;
Circular_Buffer<std::string_view> uart1Buf;
Circular_Buffer<std::string_view> uart2Buf;
bool isTurnOn() const;
void setTurnOn(bool isTurnOn);
volatile uint8_t dataFromUart1[BUF_SIZE];