master/ioctl.h
changeset 1255 38b7e05b20c1
parent 1247 5f1f1a3e6636
child 1258 900f1124e8f8
equal deleted inserted replaced
1254:c19d273a9e76 1255:38b7e05b20c1
    83 #define EC_IOCTL_CREATE_DOMAIN          EC_IO(0x17)
    83 #define EC_IOCTL_CREATE_DOMAIN          EC_IO(0x17)
    84 #define EC_IOCTL_CREATE_SLAVE_CONFIG  EC_IOWR(0x18, ec_ioctl_config_t)
    84 #define EC_IOCTL_CREATE_SLAVE_CONFIG  EC_IOWR(0x18, ec_ioctl_config_t)
    85 #define EC_IOCTL_ACTIVATE               EC_IO(0x19)
    85 #define EC_IOCTL_ACTIVATE               EC_IO(0x19)
    86 #define EC_IOCTL_SEND                   EC_IO(0x1a)
    86 #define EC_IOCTL_SEND                   EC_IO(0x1a)
    87 #define EC_IOCTL_RECEIVE                EC_IO(0x1b)
    87 #define EC_IOCTL_RECEIVE                EC_IO(0x1b)
       
    88 #define EC_IOCTL_SC_SYNC               EC_IOW(0x1c, ec_ioctl_config_t)
       
    89 #define EC_IOCTL_SC_ADD_PDO            EC_IOW(0x1c, ec_ioctl_config_pdo_t)
       
    90 #define EC_IOCTL_SC_CLEAR_PDOS         EC_IOW(0x1d, ec_ioctl_config_pdo_t)
       
    91 #define EC_IOCTL_SC_ADD_ENTRY          EC_IOW(0x1e, ec_ioctl_add_pdo_entry_t)
       
    92 #define EC_IOCTL_SC_CLEAR_ENTRIES      EC_IOW(0x1f, ec_ioctl_config_pdo_t)
       
    93 #define EC_IOCTL_SC_REG_PDO_ENTRY     EC_IOWR(0x20, ec_ioctl_reg_pdo_entry_t)
       
    94 #define EC_IOCTL_SC_SDO                EC_IOW(0x21, ec_ioctl_sc_sdo_t)
    88 
    95 
    89 #define EC_IOCTL_STRING_SIZE 64
    96 #define EC_IOCTL_STRING_SIZE 64
    90 
    97 
    91 /*****************************************************************************/
    98 /*****************************************************************************/
    92 
    99 
   366     uint8_t data[4];
   373     uint8_t data[4];
   367 } ec_ioctl_config_sdo_t;
   374 } ec_ioctl_config_sdo_t;
   368 
   375 
   369 /*****************************************************************************/
   376 /*****************************************************************************/
   370 
   377 
       
   378 typedef struct {
       
   379     // inputs
       
   380     uint32_t config_index;
       
   381     uint16_t pdo_index;
       
   382     uint16_t entry_index;
       
   383     uint8_t entry_subindex;
       
   384     uint8_t entry_bit_length;
       
   385 } ec_ioctl_add_pdo_entry_t;
       
   386 
       
   387 /*****************************************************************************/
       
   388 
       
   389 typedef struct {
       
   390     // inputs
       
   391     uint32_t config_index;
       
   392     uint16_t entry_index;
       
   393     uint8_t entry_subindex;
       
   394     uint32_t domain_index;
       
   395     
       
   396     // outputs
       
   397     unsigned int bit_position;
       
   398 } ec_ioctl_reg_pdo_entry_t;
       
   399 
       
   400 /*****************************************************************************/
       
   401 
       
   402 typedef struct {
       
   403     // inputs
       
   404     uint32_t config_index;
       
   405     uint16_t index;
       
   406     uint8_t subindex;
       
   407     const uint8_t *data;
       
   408     size_t size;
       
   409 } ec_ioctl_sc_sdo_t;
       
   410 
       
   411 /*****************************************************************************/
       
   412 
   371 /** \endcond */
   413 /** \endcond */
   372 
   414 
   373 #endif
   415 #endif