sync.h File Reference

EtherCAT sync manager. More...

Go to the source code of this file.

Data Structures

struct  ec_sync_t
 Sync manager. More...

Functions

void ec_sync_init (ec_sync_t *, ec_slave_t *)
 Constructor.
void ec_sync_init_copy (ec_sync_t *, const ec_sync_t *)
 Copy constructor.
void ec_sync_clear (ec_sync_t *)
 Destructor.
void ec_sync_page (const ec_sync_t *, uint8_t, uint16_t, const ec_sync_config_t *, uint8_t, uint8_t *)
 Initializes a sync manager configuration page.
int ec_sync_add_pdo (ec_sync_t *, const ec_pdo_t *)
 Adds a PDO to the list of known mapped PDOs.
ec_direction_t ec_sync_default_direction (const ec_sync_t *)
 Determines the default direction from the control register.


Detailed Description

EtherCAT sync manager.

Definition in file sync.h.


Function Documentation

void ec_sync_page ( const ec_sync_t sync,
uint8_t  sync_index,
uint16_t  data_size,
const ec_sync_config_t sync_config,
uint8_t  pdo_xfer,
uint8_t *  data 
)

Initializes a sync manager configuration page.

The referenced memory (data) must be at least EC_SYNC_SIZE bytes.

Parameters:
sync  Sync manager.
sync_index  Index of the sync manager.
data_size  Data size.
sync_config  Configuration.
pdo_xfer  Non-zero, if PDOs will be transferred via this sync manager.
data  > Configuration memory.

Definition at line 94 of file sync.c.

int ec_sync_add_pdo ( ec_sync_t sync,
const ec_pdo_t pdo 
)

Adds a PDO to the list of known mapped PDOs.

Returns:
0 on success, else < 0
Parameters:
sync  EtherCAT sync manager.
pdo  PDO to map.

Definition at line 153 of file sync.c.

ec_direction_t ec_sync_default_direction ( const ec_sync_t sync  ) 

Determines the default direction from the control register.

Returns:
Direction.
Parameters:
sync  EtherCAT sync manager.

Definition at line 167 of file sync.c.


Generated on Mon Jun 20 09:31:31 2016 for IgH EtherCAT Master by  doxygen 1.5.6