ADS9324 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Namespaces
ads9324_encode.hpp File Reference

Pure register encoding: a Config becomes the register image the driver writes, and a data frame becomes a Frame. More...

#include <algorithm>
#include <array>
#include <cstddef>
#include <cstdint>
#include <span>
#include "ads9324_detail.hpp"
#include "ads9324_registers.hpp"
#include "ads9324_types.hpp"

Go to the source code of this file.

Namespaces

namespace  ads9324
 The ADS9324 driver: everything it declares lives here; internals in detail.
 

Detailed Description

Pure register encoding: a Config becomes the register image the driver writes, and a data frame becomes a Frame.

Everything here is constexpr and does no I/O, so every encoding is proved with static_assert and tested without a bus. The image holds a value for each register the configuration writes; the driver writes the ones that differ from its shadow.