equal
deleted
inserted
replaced
36 #ifndef __EC_SYNC_H__ |
36 #ifndef __EC_SYNC_H__ |
37 #define __EC_SYNC_H__ |
37 #define __EC_SYNC_H__ |
38 |
38 |
39 #include "globals.h" |
39 #include "globals.h" |
40 #include "pdo_list.h" |
40 #include "pdo_list.h" |
|
41 #include "sync_config.h" |
41 |
42 |
42 /*****************************************************************************/ |
43 /*****************************************************************************/ |
43 |
44 |
44 /** Sync manager. |
45 /** Sync manager. |
45 */ |
46 */ |
55 /*****************************************************************************/ |
56 /*****************************************************************************/ |
56 |
57 |
57 void ec_sync_init(ec_sync_t *, ec_slave_t *); |
58 void ec_sync_init(ec_sync_t *, ec_slave_t *); |
58 void ec_sync_init_copy(ec_sync_t *, const ec_sync_t *); |
59 void ec_sync_init_copy(ec_sync_t *, const ec_sync_t *); |
59 void ec_sync_clear(ec_sync_t *); |
60 void ec_sync_clear(ec_sync_t *); |
60 void ec_sync_page(const ec_sync_t *, uint8_t, uint16_t, ec_direction_t, |
61 void ec_sync_page(const ec_sync_t *, uint8_t, uint16_t, |
61 uint8_t *); |
62 const ec_sync_config_t *, uint8_t *); |
62 int ec_sync_add_pdo(ec_sync_t *, const ec_pdo_t *); |
63 int ec_sync_add_pdo(ec_sync_t *, const ec_pdo_t *); |
63 ec_direction_t ec_sync_default_direction(const ec_sync_t *); |
64 ec_direction_t ec_sync_default_direction(const ec_sync_t *); |
64 |
65 |
65 /*****************************************************************************/ |
66 /*****************************************************************************/ |
66 |
67 |