represent the CoE dictionnary of a device
More...
#include <coe_utilities.h>
|
| static std::tuple< uint16_t, uint8_t, uint8_t > | pdo_object_specs (uint32_t full_spec) |
| | Get uncompressed specification from a compact object specification. More...
|
| |
represent the CoE dictionnary of a device
◆ entry
◆ ObjectDictionary() [1/2]
| ethercatcpp::coe::ObjectDictionary::ObjectDictionary |
( |
| ) |
|
|
default |
◆ ~ObjectDictionary()
| ethercatcpp::coe::ObjectDictionary::~ObjectDictionary |
( |
| ) |
|
|
default |
◆ ObjectDictionary() [2/2]
| ethercatcpp::coe::ObjectDictionary::ObjectDictionary |
( |
std::initializer_list< std::pair< std::string_view, entry >> |
| ) |
|
|
explicit |
Construct a new Object Dictionary object from a list of entries.
- Parameters
-
| initializer | list that describe dictionary content |
◆ add_entries()
| void ethercatcpp::coe::ObjectDictionary::add_entries |
( |
std::initializer_list< std::pair< std::string_view, entry >> |
entries | ) |
|
Add en entry to the dictionary.
- Parameters
-
| entries | a list of entries to be added |
◆ add_entry()
| void ethercatcpp::coe::ObjectDictionary::add_entry |
( |
std::string_view |
name, |
|
|
const DictionaryEntry & |
object |
|
) |
| |
Add en entry to the dictionary.
- Parameters
-
| name | the objectname |
| object | the corresponding entry specification |
◆ addr()
| uint16_t ethercatcpp::coe::ObjectDictionary::addr |
( |
std::string_view |
name | ) |
const |
Get address of a given entry.
- Parameters
-
- Returns
- uint16_t the address of the entry in dictionnary memory
◆ get_entry_safe()
◆ mapped_pdo_object()
| uint32_t ethercatcpp::coe::ObjectDictionary::mapped_pdo_object |
( |
std::string_view |
name | ) |
const |
Get the compact specification of a given entry.
- Parameters
-
- Returns
- uint32_t the compact CoE representation of the entry
◆ object()
| std::tuple<uint16_t, uint8_t, uint8_t> ethercatcpp::coe::ObjectDictionary::object |
( |
std::string_view |
name | ) |
const |
Get uncompressed specification of a given entry.
- Parameters
-
- Returns
- std::tuple<uint16_t, uint8_t, uint8_t> the specification of the entry (address, sub index, size in bits)
◆ pdo_object_specs()
| static std::tuple<uint16_t, uint8_t, uint8_t> ethercatcpp::coe::ObjectDictionary::pdo_object_specs |
( |
uint32_t |
full_spec | ) |
|
|
static |
Get uncompressed specification from a compact object specification.
- Parameters
-
| full_spec | the compact object specification |
- Returns
- std::tuple<uint16_t, uint8_t, uint8_t> the specification of the entry (address, sub index, size in bits)
◆ size()
| size_t ethercatcpp::coe::ObjectDictionary::size |
( |
std::string_view |
name | ) |
const |
Get size of a given entry.
- Parameters
-
- Returns
- the size of the object in bytes
◆ dictionary_
| std::map<uint64_t, DictionaryEntry> ethercatcpp::coe::ObjectDictionary::dictionary_ |
|
private |
The documentation for this class was generated from the following file: