|
HF-FDO2 Driver 0.1.0-dev
UART driver for PyroScience FDO2-G2 (data sheet v5 ยง4: #MOXY, #MRAW, #VERS)
|
CRTP byte transport for the PyroScience Unified Protocol (PSUP). More...
#include <cstddef>#include <cstdint>#include <type_traits>Go to the source code of this file.
Classes | |
| class | fdo2::UartInterface< Derived > |
| CRTP base for PSUP serial transport. More... | |
Namespaces | |
| namespace | fdo2 |
CRTP byte transport for the PyroScience Unified Protocol (PSUP).
The driver only moves bytes; each platform provides a concrete adapter inheriting this CRTP base and implementing:
void write(const uint8_t* data, std::size_t length);std::size_t read(uint8_t* out, std::size_t max, uint32_t timeout_ms);void flush_rx();PSUP lines are ASCII, terminated with carriage return (\\r, 0x0D). Typical UART framing is 8N1 at 115200 or 19200 baud (see the device datasheet). See examples/esp32/ in this repository for an ESP-IDF adapter.