Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

domain.h File Reference


Detailed Description

EtherCAT domain structure.

Definition in file domain.h.

Go to the source code of this file.

Data Structures

struct  ec_domain
 EtherCAT domain. More...

Functions

int ec_domain_init (ec_domain_t *, ec_master_t *, unsigned int)
 Domain constructor.
void ec_domain_destroy (ec_domain_t *)
 Domain destructor.
int ec_domain_alloc (ec_domain_t *, uint32_t)
 Creates a domain.
void ec_domain_queue_datagrams (ec_domain_t *)
 Places all process data datagrams in the masters datagram queue.


Function Documentation

int ec_domain_init ec_domain_t domain,
ec_master_t master,
unsigned int  index
 

Domain constructor.

Returns:
0 in case of success, else < 0
Parameters:
domain  EtherCAT domain
master  owning master
index  domain index

Definition at line 100 of file domain.c.

void ec_domain_destroy ec_domain_t domain  ) 
 

Domain destructor.

Clears and frees a domain object.

Parameters:
domain  EtherCAT domain

Definition at line 142 of file domain.c.

int ec_domain_alloc ec_domain_t domain,
uint32_t  base_address
 

Creates a domain.

Reserves domain memory, calculates the logical addresses of the corresponding FMMUs and sets the process data pointer of the registered process data.

Returns:
0 in case of success, else < 0
Parameters:
domain  EtherCAT domain
base_address  logical base address

Definition at line 393 of file domain.c.


Generated on Tue Nov 7 15:03:36 2006 for IgH EtherCAT master by  doxygen 1.4.4