63 std::vector<uint8_t>
receive(
int numBytes)
override;
65 void send(std::vector<uint8_t> dataToSend)
override;
67 void send(uint8_t dataToSend)
override;
71 std::vector<uint8_t>
receive()
override;
92 bool _enabled =
false;
95 bool _useOpenDrainTx =
false;
104 enum class UartCommand
Built-in UART peripheral.
Definition: HardwareUart.h:53
UartMode mode()
gets the UartMode of the UART peripheral
void send(std::vector< uint8_t > dataToSend) override
Send data
void startUart() override
Start the UART with the specified baud
std::vector< uint8_t > receive() override
Receive bytes from the UART in UART mode
std::vector< uint64_t > oneWireSearch() override
Search the One Wire bus and return a vector of addresses found.
int baud() override
Gets the baud of the UART.
void startOneWire() override
Start one wire mode.
bool oneWireReset() override
Reset the One Wire bus
void oneWireResetAndMatchAddress(uint64_t address) override
Reset the One Wire bus and address the specified device.
The core class for communicating with Treehopper USB boards.
Definition: TreehopperUsb.h:59
The module is operating in UART mode.
UartMode
Definition: HardwareUart.h:8