master/domain.h
branchstable-1.0
changeset 1624 9dc190591c0f
parent 1619 0d4119024f55
equal deleted inserted replaced
1623:05622513f627 1624:9dc190591c0f
    44 #include <linux/list.h>
    44 #include <linux/list.h>
    45 #include <linux/kobject.h>
    45 #include <linux/kobject.h>
    46 
    46 
    47 #include "globals.h"
    47 #include "globals.h"
    48 #include "slave.h"
    48 #include "slave.h"
    49 #include "command.h"
    49 #include "datagram.h"
    50 
    50 
    51 /*****************************************************************************/
    51 /*****************************************************************************/
    52 
    52 
    53 /**
    53 /**
    54    Data field registration type.
    54    Data field registration type.
    66 
    66 
    67 /*****************************************************************************/
    67 /*****************************************************************************/
    68 
    68 
    69 /**
    69 /**
    70    EtherCAT domain.
    70    EtherCAT domain.
    71    Handles the process data and the therefore needed commands of a certain
    71    Handles the process data and the therefore needed datagrams of a certain
    72    group of slaves.
    72    group of slaves.
    73 */
    73 */
    74 
    74 
    75 struct ec_domain
    75 struct ec_domain
    76 {
    76 {
    77     struct kobject kobj; /**< kobject */
    77     struct kobject kobj; /**< kobject */
    78     struct list_head list; /**< list item */
    78     struct list_head list; /**< list item */
    79     unsigned int index; /**< domain index (just a number) */
    79     unsigned int index; /**< domain index (just a number) */
    80     ec_master_t *master; /**< EtherCAT master owning the domain */
    80     ec_master_t *master; /**< EtherCAT master owning the domain */
    81     size_t data_size; /**< size of the process data */
    81     size_t data_size; /**< size of the process data */
    82     struct list_head commands; /**< process data commands */
    82     struct list_head datagrams; /**< process data datagrams */
    83     uint32_t base_address; /**< logical offset address of the process data */
    83     uint32_t base_address; /**< logical offset address of the process data */
    84     unsigned int response_count; /**< number of responding slaves */
    84     unsigned int response_count; /**< number of responding slaves */
    85     struct list_head field_regs; /**< data field registrations */
    85     struct list_head field_regs; /**< data field registrations */
    86 };
    86 };
    87 
    87