Motion Master
Loading...
Searching...
No Matches
mm::comm::base::PdoMappingEntry Struct Reference

Represents a single PDO (Process Data Object) mapping entry. More...

#include <base.h>

Public Member Functions

 PdoMappingEntry ()=default
 Default constructor for PdoMappingEntry.
 PdoMappingEntry (uint16_t pdoIndex, uint8_t pdoSubindex, uint16_t index, uint8_t subindex, uint8_t bitlength)
 Constructs a PDO mapping entry.

Public Attributes

uint16_t pdoIndex
 The PDO index (e.g., 0x1600 or 0x1A00)
uint8_t pdoSubindex
 The subindex within the PDO (e.g., 1, 2, etc.)
uint16_t index
 The object dictionary index (e.g., 0x607A)
uint8_t subindex
 The subindex of the object (e.g., 0x00)
uint8_t bitlength
 The size of the mapped entry in bits (e.g., 16, 32, etc.)

Detailed Description

Represents a single PDO (Process Data Object) mapping entry.

This structure defines a mapping for one object within a PDO. It includes:

  • pdoIndex: The PDO index (e.g., 0x1600 for RxPDO, 0x1A00 for TxPDO).
  • pdoSubindex: The subindex of the PDO (e.g., 1, 2, etc.).
  • index: The object dictionary index inside the PDO (e.g., 0x607A).
  • subindex: The subindex of the object within the PDO (e.g., 0x00).
  • bitlength: The size of the mapped entry in bits (e.g., 16, 32, etc.).

Constructor & Destructor Documentation

◆ PdoMappingEntry() [1/2]

mm::comm::base::PdoMappingEntry::PdoMappingEntry ( )
default

Default constructor for PdoMappingEntry.

◆ PdoMappingEntry() [2/2]

mm::comm::base::PdoMappingEntry::PdoMappingEntry ( uint16_t pdoIndex,
uint8_t pdoSubindex,
uint16_t index,
uint8_t subindex,
uint8_t bitlength )
inline

Constructs a PDO mapping entry.

Parameters
pdoIndexThe PDO index.
pdoSubindexThe subindex of the PDO.
indexThe object dictionary index.
subindexThe subindex of the object dictionary entry.
bitlengthNumber of bits in the mapped entry.

Member Data Documentation

◆ bitlength

uint8_t mm::comm::base::PdoMappingEntry::bitlength

The size of the mapped entry in bits (e.g., 16, 32, etc.)

◆ index

uint16_t mm::comm::base::PdoMappingEntry::index

The object dictionary index (e.g., 0x607A)

◆ pdoIndex

uint16_t mm::comm::base::PdoMappingEntry::pdoIndex

The PDO index (e.g., 0x1600 or 0x1A00)

◆ pdoSubindex

uint8_t mm::comm::base::PdoMappingEntry::pdoSubindex

The subindex within the PDO (e.g., 1, 2, etc.)

◆ subindex

uint8_t mm::comm::base::PdoMappingEntry::subindex

The subindex of the object (e.g., 0x00)


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