31 #define LELY_CO_DEFINE_TYPE(a, b, c, d) case CO_DEFTYPE_##a:
32 #include <lely/co/def/basic.def>
33 #undef LELY_CO_DEFINE_TYPE
55 #define LELY_CO_DEFINE_TYPE(a, b, c, d) \
56 case CO_DEFTYPE_##a: \
57 return sizeof(co_##b##_t);
58 #include <lely/co/def/type.def>
59 #undef LELY_CO_DEFINE_TYPE
68 #define LELY_CO_DEFINE_TYPE(a, b, c, d) \
69 case CO_DEFTYPE_##a: \
70 return _Alignof(co_##b##_t);
71 #include <lely/co/def/type.def>
72 #undef LELY_CO_DEFINE_TYPE
This is the internal header file of the CANopen library.
int co_type_is_array(co_unsigned16_t type)
Returns 1 if the specified (static) data type is an array, and 0 if not.
size_t co_type_alignof(co_unsigned16_t type)
Returns the alignment requirements (in bytes) of a value of the specified data type,...
size_t co_type_sizeof(co_unsigned16_t type)
Returns the native size (in bytes) of a value of the specified data type, or 1 if it is not a static ...
int co_type_is_basic(co_unsigned16_t type)
Returns 1 if the specified (static) data type is a basic type, and 0 if not.
This header file is part of the CANopen library; it contains the CANopen type definitions.
#define CO_DEFTYPE_UNICODE_STRING
The data type (and object index) of an array of (16-bit) Unicode characters.
#define CO_DEFTYPE_VISIBLE_STRING
The data type (and object index) of an array of visible characters.
#define CO_DEFTYPE_DOMAIN
The data type (and object index) of an arbitrary large block of data.
#define CO_DEFTYPE_OCTET_STRING
The data type (and object index) of an array of octets.