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

Represents the mapped PDO entries for a slave device. More...

#include <base.h>

Public Member Functions

size_t rxSizeBits () const
 Get total size of RxPDOs in bits.
size_t txSizeBits () const
 Get total size of TxPDOs in bits.
size_t rxSizeBytes () const
 Get total size of RxPDOs in bytes.
size_t txSizeBytes () const
 Get total size of TxPDOs in bytes.

Public Attributes

std::vector< PdoMappingEntryrxPdos
std::vector< PdoMappingEntrytxPdos

Detailed Description

Represents the mapped PDO entries for a slave device.

This structure contains two vectors:

  • rxPdos: Mapped entries for received PDOs (Slave inputs, Master outputs).
  • txPdos: Mapped entries for transmitted PDOs (Slave outputs, Master inputs).

Each entry in these vectors holds detailed mapping information, including:

  • pdoIndex: The PDO index (e.g., 0x1600 for RxPDO, 0x1A00 for TxPDO).
  • 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.).

Member Function Documentation

◆ rxSizeBits()

size_t mm::comm::base::PdoMappings::rxSizeBits ( ) const
inlinenodiscard

Get total size of RxPDOs in bits.

Returns
Total number of bits for all mapped RxPDO entries.

◆ rxSizeBytes()

size_t mm::comm::base::PdoMappings::rxSizeBytes ( ) const
inlinenodiscard

Get total size of RxPDOs in bytes.

Bits are rounded up to the nearest byte.

Returns
Total number of bytes for all mapped RxPDO entries.

◆ txSizeBits()

size_t mm::comm::base::PdoMappings::txSizeBits ( ) const
inlinenodiscard

Get total size of TxPDOs in bits.

Returns
Total number of bits for all mapped TxPDO entries.

◆ txSizeBytes()

size_t mm::comm::base::PdoMappings::txSizeBytes ( ) const
inlinenodiscard

Get total size of TxPDOs in bytes.

Bits are rounded up to the nearest byte.

Returns
Total number of bytes for all mapped TxPDO entries.

Member Data Documentation

◆ rxPdos

std::vector<PdoMappingEntry> mm::comm::base::PdoMappings::rxPdos

Mapped entries for received PDOs (Slave inputs, Master outputs)

◆ txPdos

std::vector<PdoMappingEntry> mm::comm::base::PdoMappings::txPdos

Mapped entries for transmitted PDOs (Slave outputs, Master inputs)


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