Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
mm::comm::OdRead Struct Reference

One device's object dictionary as read from the bus, and what the read did not get. More...

#include <fieldbus_driver.h>

Collaboration diagram for mm::comm::OdRead:
[legend]

Public Attributes

std::vector< OdEntryentries
 One per (index, subindex) pair the device answered for.
 
int missingEntries = 0
 Entries asked for and never answered. Above zero, do not cache.
 

Detailed Description

One device's object dictionary as read from the bus, and what the read did not get.

missingEntries counts the (index, subindex) pairs the device was asked about and did not answer, after the driver exhausted its retries on each of them. It is separate from the error channel because an enumeration that loses a few entries still returns a usable dictionary: the device comes up, and every entry that was read is correct.

A caller that persists the dictionary must refuse to persist one with missingEntries above zero. A cache file is keyed on the device's identity and read back on every later scan, so a short dictionary written once is what the master believes for as long as the file exists — on that host alone, which is a fault nobody else can reproduce and nothing corrects.

Member Data Documentation

◆ entries

std::vector<OdEntry> mm::comm::OdRead::entries

One per (index, subindex) pair the device answered for.

◆ missingEntries

int mm::comm::OdRead::missingEntries = 0

Entries asked for and never answered. Above zero, do not cache.


The documentation for this struct was generated from the following file: