blob: f87af1b6ddc777008e8052312ea87291d70ae190 [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/byte_reader.h"
namespace bbb {
class UartReader : public ByteReader {
public:
UartReader(int32_t baud_rate);
virtual ~UartReader();
virtual ssize_t ReadBytes(AlignedChar *dest, size_t max_bytes);
private:
const int fd_;
};
} // namespace bbb
#endif