PF1550 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Namespaces
pf1550_plan.hpp File Reference

The register writes of each configuration block as pure constexpr data. More...

#include <array>
#include <cstddef>
#include <cstdint>
#include "pf1550_codec.hpp"
#include "pf1550_config.hpp"
#include "pf1550_detail.hpp"
#include "pf1550_irq.hpp"
#include "pf1550_registers.hpp"
#include "pf1550_types.hpp"

Go to the source code of this file.

Namespaces

namespace  pf1550
 The PF1550 driver: everything it declares lives here; internals in detail.
 

Detailed Description

The register writes of each configuration block as pure constexpr data.

A plan is a short list of {register, mask, value} entries: the driver reads the register, replaces the bits of mask with the bits of value, writes it back and reads it again to verify (PF1550::applyPlan). Bits outside the mask, reserved and unused bits included, are written back as read. The plans take a Config that Validate() has accepted; every code is produced by the codecs of pf1550_codec.hpp, and the plans are proved with static_assert against the register map (KB-CPP20-012).