equal
deleted
inserted
replaced
47 #include "../include/ecrt.h" |
47 #include "../include/ecrt.h" |
48 |
48 |
49 #include "globals.h" |
49 #include "globals.h" |
50 #include "slave.h" |
50 #include "slave.h" |
51 #include "fmmu_config.h" |
51 #include "fmmu_config.h" |
52 #include "pdo_mapping.h" |
52 #include "pdo_list.h" |
53 |
53 |
54 /*****************************************************************************/ |
54 /*****************************************************************************/ |
55 |
55 |
56 /** EtherCAT slave configuration. |
56 /** EtherCAT slave configuration. |
57 */ |
57 */ |
67 uint32_t product_code; /**< Slave product code. */ |
67 uint32_t product_code; /**< Slave product code. */ |
68 |
68 |
69 ec_slave_t *slave; /**< Slave pointer. This is \a NULL, if the slave is |
69 ec_slave_t *slave; /**< Slave pointer. This is \a NULL, if the slave is |
70 offline. */ |
70 offline. */ |
71 |
71 |
72 ec_pdo_mapping_t mapping[2]; /**< Output and input Pdo mapping. */ |
72 ec_pdo_list_t pdos[2]; /**< Output and input Pdo assignment / mapping. */ |
73 |
73 |
74 struct list_head sdo_configs; /**< List of Sdo configurations. */ |
74 struct list_head sdo_configs; /**< List of Sdo configurations. */ |
75 struct list_head sdo_requests; /**< List of Sdo requests. */ |
75 struct list_head sdo_requests; /**< List of Sdo requests. */ |
76 |
76 |
77 ec_fmmu_config_t fmmu_configs[EC_MAX_FMMUS]; /**< FMMU configurations. */ |
77 ec_fmmu_config_t fmmu_configs[EC_MAX_FMMUS]; /**< FMMU configurations. */ |
85 void ec_slave_config_destroy(ec_slave_config_t *); |
85 void ec_slave_config_destroy(ec_slave_config_t *); |
86 |
86 |
87 int ec_slave_config_attach(ec_slave_config_t *); |
87 int ec_slave_config_attach(ec_slave_config_t *); |
88 void ec_slave_config_detach(ec_slave_config_t *); |
88 void ec_slave_config_detach(ec_slave_config_t *); |
89 |
89 |
90 void ec_slave_config_load_default_mapping(ec_slave_config_t *); |
90 void ec_slave_config_load_default_assignment(ec_slave_config_t *); |
91 void ec_slave_config_load_default_pdo_config(const ec_slave_config_t *, |
91 void ec_slave_config_load_default_mapping(const ec_slave_config_t *, |
92 ec_pdo_t *); |
92 ec_pdo_t *); |
93 |
93 |
94 /*****************************************************************************/ |
94 /*****************************************************************************/ |
95 |
95 |
96 #endif |
96 #endif |