86 using BIT1 = std::bitset<1>;
87 using BIT2 = std::bitset<2>;
88 using BIT3 = std::bitset<3>;
89 using BIT4 = std::bitset<4>;
90 using BIT5 = std::bitset<5>;
91 using BIT6 = std::bitset<6>;
92 using BIT7 = std::bitset<7>;
93 using BIT8 = std::bitset<8>;
103 template <
typename T>
157 template <EtherCATDataTypeEnum E>
EtherCATDataTypeEnum
Holds all the types we support via EtherCAT in a type-agnostic enum.
Holds all the types we support via EtherCAT as their C++ equivalents along with some tools to handle ...
std::vector< uint8_t > OCTET_STRING
std::bitset< 24 > UNSIGNED24
std::string VISIBLE_STRING
std::string UNICODE_STRING
std::bitset< 48 > TIME_OF_DAY
constexpr int bitLength
Defines the length of the various EtherCATDataTypes in bits.
std::bitset< 24 > INTEGER24
EtherCATDataType::BIT1 type
EtherCATDataType::BIT2 type
EtherCATDataType::BIT3 type
EtherCATDataType::BIT4 type
EtherCATDataType::BIT5 type
EtherCATDataType::BIT6 type
EtherCATDataType::BIT7 type
EtherCATDataType::BIT8 type
EtherCATDataType::BOOLEAN type
EtherCATDataType::BYTE type
EtherCATDataType::INTEGER16 type
EtherCATDataType::INTEGER24 type
EtherCATDataType::INTEGER32 type
EtherCATDataType::INTEGER64 type
EtherCATDataType::INTEGER8 type
EtherCATDataType::OCTET_STRING type
EtherCATDataType::REAL32 type
EtherCATDataType::REAL64 type
EtherCATDataType::TIME_DIFFERENCE type
EtherCATDataType::TIME_OF_DAY type
EtherCATDataType::UNICODE_STRING type
EtherCATDataType::UNSIGNED16 type
EtherCATDataType::UNSIGNED24 type
EtherCATDataType::UNSIGNED32 type
EtherCATDataType::UNSIGNED64 type
EtherCATDataType::UNSIGNED8 type
EtherCATDataType::VISIBLE_STRING type
Maps from EtherCATDataTypeEnum to EtherCATDataType.