Motion Master 6.0.0-alpha.50
Next-generation motion control software
Loading...
Searching...
No Matches
pdo_mapping.h File Reference
#include <cstdint>
#include <nlohmann/json_fwd.hpp>
#include <vector>
Include dependency graph for pdo_mapping.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mm::node::PdoMappingEntry
 One object mapped into a slave's process data, with its position in the window. More...
 
struct  mm::node::FlatPdoMapping
 A device's complete PDO mapping across both directions. More...
 
struct  mm::node::PdoMappingObject
 One PDO mapping object (0x16xx RxPDO / 0x1Axx TxPDO) and its ordered entries. More...
 
struct  mm::node::PdoMapping
 A device's desired PDO configuration to write and assign — the write-side input to Device::writePdoMapping, and the grouped counterpart of the read-side FlatPdoMapping. More...
 

Namespaces

namespace  mm
 
namespace  mm::node
 

Functions

uint32_t mm::node::packMappingEntry (const PdoMappingEntry &e)
 Packs an entry into its 32-bit CoE mapping word (ETG.1000.6 §5.6.7.4.7): index<<16 | subindex<<8 | bitLength.
 
PdoMappingEntry mm::node::unpackMappingEntry (uint32_t packed)
 Unpacks a 32-bit CoE mapping word into an entry — the inverse of packMappingEntry.
 
void mm::node::to_json (nlohmann::json &j, const PdoMappingEntry &e)
 Serialises a single entry: index, subindex, bitLength, bitOffset.
 
void mm::node::to_json (nlohmann::json &j, const PdoMappingObject &o)
 Serialises one mapping object: pdoIndex and its ordered entries.
 
void mm::node::to_json (nlohmann::json &j, const PdoMapping &m)
 Serialises a device's grouped mapping: outputs / inputs object arrays. The response shape of the PDO-mapping routes (each entry carries its derived bitOffset).