IgH EtherCAT Master  1.5.3
fmmu_config.h File Reference

EtherCAT FMMU configuration structure. More...

Go to the source code of this file.

Data Structures

struct  ec_fmmu_config_t
 FMMU configuration. More...
 

Functions

void ec_fmmu_config_init (ec_fmmu_config_t *, ec_slave_config_t *, ec_domain_t *, uint8_t, ec_direction_t)
 FMMU configuration constructor. More...
 
void ec_fmmu_config_page (const ec_fmmu_config_t *, const ec_sync_t *, uint8_t *)
 Initializes an FMMU configuration page. More...
 

Detailed Description

EtherCAT FMMU configuration structure.

Definition in file fmmu_config.h.

Function Documentation

◆ ec_fmmu_config_init()

void ec_fmmu_config_init ( ec_fmmu_config_t fmmu,
ec_slave_config_t sc,
ec_domain_t domain,
uint8_t  sync_index,
ec_direction_t  dir 
)

FMMU configuration constructor.

Inits an FMMU configuration, sets the logical start address and adds the process data size for the mapped PDOs of the given direction to the domain data size.

Parameters
fmmuEtherCAT FMMU configuration.
scEtherCAT slave configuration.
domainEtherCAT domain.
sync_indexSync manager index to use.
dirPDO direction.

Definition at line 50 of file fmmu_config.c.

◆ ec_fmmu_config_page()

void ec_fmmu_config_page ( const ec_fmmu_config_t fmmu,
const ec_sync_t sync,
uint8_t *  data 
)

Initializes an FMMU configuration page.

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

Parameters
fmmuEtherCAT FMMU configuration.
syncSync manager.
data

Configuration page memory.

Definition at line 76 of file fmmu_config.c.