Lely core libraries  2.3.4
dev.h
Go to the documentation of this file.
1 
23 #ifndef LELY_CO_DETAIL_DEV_H_
24 #define LELY_CO_DETAIL_DEV_H_
25 
26 #include <lely/co/dev.h>
27 #include <lely/util/rbtree.h>
28 
30 struct __co_dev {
32  co_unsigned8_t netid;
34  co_unsigned8_t id;
36  struct rbtree tree;
37 #if !LELY_NO_CO_OBJ_NAME
39  char *name;
41  char *vendor_name;
42 #endif
44  co_unsigned32_t vendor_id;
45 #if !LELY_NO_CO_OBJ_NAME
47  char *product_name;
48 #endif
50  co_unsigned32_t product_code;
52  co_unsigned32_t revision;
53 #if !LELY_NO_CO_OBJ_NAME
55  char *order_code;
56 #endif
58  unsigned baud : 10;
60  co_unsigned16_t rate;
62  int lss;
64  co_unsigned32_t dummy;
65 #if !LELY_NO_CO_TPDO
70 #if !LELY_NO_CO_MPDO
75 #endif
76 #endif // !LELY_NO_CO_TPDO
77 };
78 
79 #endif // LELY_CO_DETAIL_DEV_H_
This header file is part of the CANopen library; it contains the device description declarations.
void co_dev_tpdo_event_ind_t(co_unsigned16_t num, void *data)
The type of a CANopen Transmit-PDO event indication function, invoked by co_dev_tpdo_event() when an ...
Definition: dev.h:97
void co_dev_sam_mpdo_event_ind_t(co_unsigned16_t num, co_unsigned16_t idx, co_unsigned8_t subidx, void *data)
The type of a CANopen source address mode multiplex PDO event indication function,...
Definition: dev.h:109
This header file is part of the utilities library; it contains the red-black tree declarations.
A CANopen device.
Definition: dev.h:30
struct rbtree tree
The tree containing the object dictionary.
Definition: dev.h:36
co_unsigned32_t product_code
The product code.
Definition: dev.h:50
char * product_name
A pointer to the product name.
Definition: dev.h:47
co_unsigned16_t rate
The (pending) baudrate (in kbit/s).
Definition: dev.h:60
char * vendor_name
A pointer to the vendor name.
Definition: dev.h:41
char * order_code
A pointer to the order code.
Definition: dev.h:55
co_dev_tpdo_event_ind_t * tpdo_event_ind
A pointer to the Transmit-PDO event indication function.
Definition: dev.h:67
co_unsigned8_t netid
The network-ID.
Definition: dev.h:32
co_unsigned8_t id
The node-ID.
Definition: dev.h:34
void * sam_mpdo_event_data
A pointer to user-specified data for sam_mpdo_event_ind.
Definition: dev.h:74
unsigned baud
The supported bit rates.
Definition: dev.h:58
int lss
A flag specifying whether LSS is supported (1) or not (0).
Definition: dev.h:62
co_unsigned32_t vendor_id
The vendor ID.
Definition: dev.h:44
co_dev_sam_mpdo_event_ind_t * sam_mpdo_event_ind
A pointer to the SAM-MPDO event indication function.
Definition: dev.h:72
co_unsigned32_t revision
The revision number.
Definition: dev.h:52
co_unsigned32_t dummy
The data types supported for mapping dummy entries in PDOs.
Definition: dev.h:64
void * tpdo_event_data
A pointer to user-specified data for tpdo_event_ind.
Definition: dev.h:69
char * name
A pointer to the name of the device.
Definition: dev.h:39
A red-black tree.
Definition: rbtree.h:91