master/ioctl.h
changeset 987 3c9090138140
parent 980 c07dd38243ba
child 989 816663ca9370
equal deleted inserted replaced
986:a486591ba86b 987:3c9090138140
    83     } devices[2];
    83     } devices[2];
    84 } ec_ioctl_master_t;
    84 } ec_ioctl_master_t;
    85 
    85 
    86 /*****************************************************************************/
    86 /*****************************************************************************/
    87 
    87 
    88 #define EC_IOCTL_SLAVE_NAME_SIZE 100
    88 #define EC_IOCTL_SLAVE_NAME_SIZE 99
    89 
    89 
    90 typedef struct {
    90 typedef struct {
    91     // input
    91     // input
    92     uint16_t position;
    92     uint16_t position;
    93 
    93 
    96     uint32_t product_code;
    96     uint32_t product_code;
    97     uint32_t revision_number;
    97     uint32_t revision_number;
    98     uint32_t serial_number;
    98     uint32_t serial_number;
    99     uint16_t alias;
    99     uint16_t alias;
   100     uint8_t state;
   100     uint8_t state;
       
   101     uint8_t error_flag;
   101     uint8_t sync_count;
   102     uint8_t sync_count;
   102     uint16_t sdo_count;
   103     uint16_t sdo_count;
   103     uint32_t sii_nwords;
   104     uint32_t sii_nwords;
   104     char name[EC_IOCTL_SLAVE_NAME_SIZE];
   105     char name[EC_IOCTL_SLAVE_NAME_SIZE];
   105 } ec_ioctl_slave_t;
   106 } ec_ioctl_slave_t;