equal
deleted
inserted
replaced
52 #define EC_SYNC_SIZE 8 |
52 #define EC_SYNC_SIZE 8 |
53 |
53 |
54 /*****************************************************************************/ |
54 /*****************************************************************************/ |
55 |
55 |
56 /** |
56 /** |
|
57 * EtherCAT sync manager PDO mapping information source. |
|
58 */ |
|
59 |
|
60 typedef enum { |
|
61 EC_SYNC_MAPPING_NONE, /**< No PDO mapping information */ |
|
62 EC_SYNC_MAPPING_SII, /**< PDO mapping information from SII */ |
|
63 EC_SYNC_MAPPING_COE /**< PDO mapping information from CoE dictionary */ |
|
64 } |
|
65 ec_sync_mapping_source_t; |
|
66 |
|
67 /*****************************************************************************/ |
|
68 |
|
69 /** |
57 * Sync manager. |
70 * Sync manager. |
58 */ |
71 */ |
59 |
72 |
60 typedef struct |
73 typedef struct |
61 { |
74 { |
67 uint8_t enable; /**< enable bit */ |
80 uint8_t enable; /**< enable bit */ |
68 |
81 |
69 uint16_t est_length; /**< used to calculate the length via PDO ranges */ |
82 uint16_t est_length; /**< used to calculate the length via PDO ranges */ |
70 struct list_head pdos; /**< list of mapped PDOs */ |
83 struct list_head pdos; /**< list of mapped PDOs */ |
71 unsigned int alt_mapping; /**< alternative mapping configured */ |
84 unsigned int alt_mapping; /**< alternative mapping configured */ |
|
85 ec_sync_mapping_source_t mapping_source; /**< pdo mapping source */ |
72 } |
86 } |
73 ec_sync_t; |
87 ec_sync_t; |
74 |
88 |
75 /*****************************************************************************/ |
89 /*****************************************************************************/ |
76 |
90 |