master/domain.c
changeset 626 a5e838c30733
parent 625 ec69acbbd156
child 628 e94a16bc52ce
equal deleted inserted replaced
625:ec69acbbd156 626:a5e838c30733
    52 
    52 
    53 typedef struct
    53 typedef struct
    54 {
    54 {
    55     struct list_head list; /**< list item */
    55     struct list_head list; /**< list item */
    56     ec_slave_t *slave; /**< slave */
    56     ec_slave_t *slave; /**< slave */
    57     const ec_sii_sync_t *sync; /**< sync manager */
    57     const ec_sync_t *sync; /**< sync manager */
    58     off_t sync_offset; /**< pdo offset */
    58     off_t sync_offset; /**< pdo offset */
    59     void **data_ptr; /**< pointer to process data pointer(s) */
    59     void **data_ptr; /**< pointer to process data pointer(s) */
    60 }
    60 }
    61 ec_data_reg_t;
    61 ec_data_reg_t;
    62 
    62 
   194                             void **data_ptr /**< pointer to the process data
   194                             void **data_ptr /**< pointer to the process data
   195                                                pointer */
   195                                                pointer */
   196                             )
   196                             )
   197 {
   197 {
   198     ec_data_reg_t *data_reg;
   198     ec_data_reg_t *data_reg;
   199     const ec_sii_sync_t *sync;
   199     const ec_sync_t *sync;
   200     const ec_pdo_t *other_pdo;
   200     const ec_pdo_t *other_pdo;
   201     const ec_pdo_entry_t *other_entry;
   201     const ec_pdo_entry_t *other_entry;
   202     unsigned int bit_offset, byte_offset;
   202     unsigned int bit_offset, byte_offset;
   203 
   203 
   204     // Find sync manager for PDO
   204     // Find sync manager for PDO
   263                             void **data_ptr /**< pointer to the process data
   263                             void **data_ptr /**< pointer to the process data
   264                                                pointer */
   264                                                pointer */
   265                             )
   265                             )
   266 {
   266 {
   267     ec_data_reg_t *data_reg;
   267     ec_data_reg_t *data_reg;
   268     ec_sii_sync_t *sync;
   268     ec_sync_t *sync;
   269     uint16_t sync_length;
   269     uint16_t sync_length;
   270 
   270 
   271     if (!(sync = ec_slave_get_pdo_sync(slave, dir))) {
   271     if (!(sync = ec_slave_get_pdo_sync(slave, dir))) {
   272         EC_ERR("No sync manager found for PDO range.\n");
   272         EC_ERR("No sync manager found for PDO range.\n");
   273         return -1;
   273         return -1;