HardFOC Core
API reference
Loading...
Searching...
No Matches
Classes
Fdo2Handler.h File Reference

HAL-level handler for the PyroScience FDO2-G2 oxygen probe. More...

#include <atomic>
#include <cstddef>
#include <cstdint>
#include <memory>
#include "RtosMutex.h"
#include "base/BaseUart.h"
#include "core/hf-core-drivers/external/hf-fdo2-driver/inc/fdo2.hpp"

Go to the source code of this file.

Classes

class  HalUartFdo2Comm
 CRTP adapter that turns a BaseUart& into a transport the templated fdo2::Driver<UartT> can drive. More...
 
struct  Fdo2HandlerConfig
 Construction-time configuration for one FDO2-G2 instance. More...
 
class  Fdo2Handler
 HAL handler wrapping one FDO2-G2 oxygen probe on a BaseUart. More...
 

Detailed Description

HAL-level handler for the PyroScience FDO2-G2 oxygen probe.

Bridges the platform-agnostic templated fdo2::Driver<UartT> (from hf-core-drivers/external/hf-fdo2-driver) to a BaseUart& reference. Apps that already own a configured UART can construct a handler with a single BaseUart& and the handler internally:

Public API is intentionally narrow:

The handler does not spawn its own thread; the polling cadence and lock-free caching policy live in the app.

Pattern follows the rest of the HAL handler family (AlicatBasis2Handler, Ads7952Handler, Tle92466edHandler, Max22200Handler).