equal
deleted
inserted
replaced
138 } |
138 } |
139 |
139 |
140 /*****************************************************************************/ |
140 /*****************************************************************************/ |
141 |
141 |
142 /** |
142 /** |
|
143 * Adds a PDO to the list of known mapped PDOs. |
|
144 * \return 0 on success, else < 0 |
143 */ |
145 */ |
144 |
146 |
145 int ec_sync_add_pdo( |
147 int ec_sync_add_pdo( |
146 ec_sync_t *sync, /**< EtherCAT sync manager */ |
148 ec_sync_t *sync, /**< EtherCAT sync manager */ |
147 const ec_pdo_t *pdo /**< PDO to map */ |
149 const ec_pdo_t *pdo /**< PDO to map */ |
176 } |
178 } |
177 |
179 |
178 /*****************************************************************************/ |
180 /*****************************************************************************/ |
179 |
181 |
180 /** |
182 /** |
|
183 * Clears the list of known mapped PDOs. |
181 */ |
184 */ |
182 |
185 |
183 void ec_sync_clear_pdos( |
186 void ec_sync_clear_pdos( |
184 ec_sync_t *sync /**< EtherCAT sync manager */ |
187 ec_sync_t *sync /**< EtherCAT sync manager */ |
185 ) |
188 ) |
195 } |
198 } |
196 |
199 |
197 /*****************************************************************************/ |
200 /*****************************************************************************/ |
198 |
201 |
199 /** |
202 /** |
|
203 * \return Type of PDOs covered by the given sync manager. |
200 */ |
204 */ |
201 |
205 |
202 ec_pdo_type_t ec_sync_get_pdo_type( |
206 ec_pdo_type_t ec_sync_get_pdo_type( |
203 const ec_sync_t *sync /**< EtherCAT sync manager */ |
207 const ec_sync_t *sync /**< EtherCAT sync manager */ |
204 ) |
208 ) |