moddef-cpp
Idiomatic C++ runtime for ModDef
Loading...
Searching...
No Matches
device.hpp File Reference

Device driver (spec §32.4). More...

#include <cstdint>
#include <span>
#include <string_view>
#include "moddef/document.hpp"
#include "moddef/error.hpp"
#include "moddef/transport.hpp"
#include "moddef/value.hpp"
#include "moddef/device.h"

Go to the source code of this file.

Classes

class  moddef::Device
 A device bound to a transport: read and write its points by id. More...
 

Namespaces

namespace  moddef
 

Detailed Description

Device driver (spec §32.4).

Binds a moddef::Transport to one device profile for point reads and writes, including SunSpec discovery. RAII over the C core's md_dev_t; reads/writes return moddef::Result, and an unavailable reading (§8.4) is a moddef::Value state, not an error.