blob: a717c33992b118891c2d03521dd46d9d7989c84b [file] [log] [blame]
#ifndef BBB_CAPE_SRC_BBB_UART_READER_H_
#define BBB_CAPE_SRC_BBB_UART_READER_H_
#include <stdint.h>
#include <string.h>
#include "bbb/packet_finder.h"
namespace bbb {
class UartReader : public PacketFinder {
int fd_;
public:
UartReader(int32_t baud_rate);
~UartReader();
int ReadBytes(AlignedChar *dest, size_t max_bytes);
};
} // namespace bbb
#endif