23#ifndef LELY_CO_DETAIL_OBJ_H_
24#define LELY_CO_DETAIL_OBJ_H_
40#if !LELY_NO_CO_OBJ_NAME
62#if !LELY_NO_CO_OBJ_NAME
66#if !LELY_NO_CO_OBJ_LIMITS
72#if !LELY_NO_CO_OBJ_DEFAULT
88#if !LELY_NO_CO_OBJ_UPLOAD
co_unsigned32_t co_sub_default_up_ind(const co_sub_t *sub, struct co_sdo_req *req, void *data)
The default upload indication function.
co_unsigned32_t co_sub_default_dn_ind(co_sub_t *sub, struct co_sdo_req *req, void *data)
The default download indication function.
This header file is part of the CANopen library; it contains the object dictionary declarations.
co_unsigned32_t co_sub_up_ind_t(const co_sub_t *sub, struct co_sdo_req *req, void *data)
The type of a CANopen sub-object upload indication function, invoked by an SDO upload request or Tran...
co_unsigned32_t co_sub_dn_ind_t(co_sub_t *sub, struct co_sdo_req *req, void *data)
The type of a CANopen sub-object download indication function, invoked by an SDO download request or ...
This header file is part of the utilities library; it contains the red-black tree declarations.
co_unsigned16_t idx
The object index.
co_unsigned8_t code
The object code.
size_t size
The size (in bytes) of the value at val.
struct rbtree tree
The tree containing all the sub-objects.
struct rbnode node
The node of this object in the tree of objects.
co_dev_t * dev
A pointer to the CANopen device containing this object.
char * name
A pointer to the name of the object.
void * val
A pointer to the object value.
uint_least32_t pdo_mapping
A flag indicating if it is possible to map this object into a PDO.
co_sub_dn_ind_t * dn_ind
A pointer to the download indication function.
co_unsigned8_t subidx
The object sub-index.
struct rbnode node
The node of this sub-object in the tree of sub-objects.
co_obj_t * obj
A pointer to the CANopen object containing this sub-object.
union co_val def
The default value.
union co_val min
The lower limit of the object value.
co_sub_up_ind_t * up_ind
A pointer to the upload indication function.
union co_val max
The upper limit of the object value.
uint_least32_t access
The access type.
char * name
A pointer to the name of the sub-object.
co_unsigned16_t type
The data type.
void * val
A pointer to the sub-object value.
void * dn_data
A pointer to user-specified data for dn_ind.
void * up_data
A pointer to user-specified data for up_ind.
uint_least32_t flags
The object flags.
A CANopen SDO upload/download request.
A node in a red-black tree.
A union of the CANopen static data types.
This header file is part of the CANopen library; it contains the CANopen value declarations.