22#ifndef LELY_CO_SDEV_H_
23#define LELY_CO_SDEV_H_
63#if !LELY_NO_CO_OBJ_NAME
79#if !LELY_NO_CO_OBJ_NAME
87#if !LELY_NO_CO_OBJ_LIMITS
93#if !LELY_NO_CO_OBJ_DEFAULT
111struct __co_dev *__co_dev_init_from_sdev(
This header file is part of the CANopen library; it contains the device description declarations.
This header file is part of the CANopen library; it contains the object dictionary declarations.
co_dev_t * co_dev_create_from_sdev(const struct co_sdev *sdev)
Creates a CANopen device from a static device description.
int snprintf_c99_sdev(char *s, size_t n, const co_dev_t *dev)
Prints a C99 static initializer code fragment for a static device description (struct co_sdev) to a s...
int asprintf_c99_sdev(char **ps, const co_dev_t *dev)
Equivalent to snprintf_c99_sdev(), except that it allocates a string large enough to hold the output,...
co_unsigned8_t id
The node-ID.
co_unsigned16_t nobj
The number of objects in objs.
int lss
A flag specifying whether LSS is supported (1) or not (0).
const char * product_name
A pointer to the product name.
const char * vendor_name
A pointer to the vendor name.
co_unsigned32_t dummy
The data types supported for mapping dummy entries in PDOs.
co_unsigned16_t rate
The (pending) baudrate (in kbit/s).
unsigned baud
The supported bit rates.
co_unsigned32_t product_code
The product code.
co_unsigned32_t vendor_id
The vendor ID.
const char * name
A pointer to the name of the device.
const char * order_code
A pointer to the order code.
co_unsigned32_t revision
The revision number.
const struct co_sobj * objs
An array of objects.
const struct co_ssub * subs
An array of sub-objects.
const char * name
A pointer to the name of the object.
co_unsigned16_t idx
The object index.
co_unsigned8_t nsub
The number of sub-objects in subs.
co_unsigned8_t code
The object code.
A static CANopen sub-object.
union co_val min
The lower limit of val.
union co_val def
The default value of val.
co_unsigned8_t subidx
The object sub-index.
uint_least32_t flags
The object flags.
const char * name
A pointer to the name of the sub-object.
union co_val val
The sub-object value.
uint_least32_t pdo_mapping
A flag indicating if it is possible to map this object into a PDO.
uint_least32_t access
The access type.
co_unsigned16_t type
The data type.
union co_val max
The upper limit of val.
A union of the CANopen static data types.
This header file is part of the CANopen library; it contains the CANopen value declarations.