equal
deleted
inserted
replaced
54 |
54 |
55 /** EtherCAT master ioctl() version magic. |
55 /** EtherCAT master ioctl() version magic. |
56 * |
56 * |
57 * Increment this when changing the ioctl interface! |
57 * Increment this when changing the ioctl interface! |
58 */ |
58 */ |
59 #define EC_IOCTL_VERSION_MAGIC 5 |
59 #define EC_IOCTL_VERSION_MAGIC 6 |
60 |
60 |
61 // Command-line tool |
61 // Command-line tool |
62 #define EC_IOCTL_MODULE EC_IOR(0x00, ec_ioctl_module_t) |
62 #define EC_IOCTL_MODULE EC_IOR(0x00, ec_ioctl_module_t) |
63 #define EC_IOCTL_MASTER EC_IOR(0x01, ec_ioctl_master_t) |
63 #define EC_IOCTL_MASTER EC_IOR(0x01, ec_ioctl_master_t) |
64 #define EC_IOCTL_SLAVE EC_IOWR(0x02, ec_ioctl_slave_t) |
64 #define EC_IOCTL_SLAVE EC_IOWR(0x02, ec_ioctl_slave_t) |
581 |
581 |
582 typedef struct { |
582 typedef struct { |
583 // inputs |
583 // inputs |
584 uint32_t config_index; |
584 uint32_t config_index; |
585 uint16_t idn; |
585 uint16_t idn; |
586 ec_al_state_t state; |
586 ec_al_state_t al_state; |
587 const uint8_t *data; |
587 const uint8_t *data; |
588 size_t size; |
588 size_t size; |
589 } ec_ioctl_sc_idn_t; |
589 } ec_ioctl_sc_idn_t; |
590 |
590 |
591 /*****************************************************************************/ |
591 /*****************************************************************************/ |