IgH EtherCAT Master  1.5.3
fmmu_config.c File Reference

EtherCAT FMMU configuration methods. More...

Go to the source code of this file.

Functions

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. More...
 
void ec_fmmu_config_page (const ec_fmmu_config_t *fmmu, const ec_sync_t *sync, uint8_t *data)
 Initializes an FMMU configuration page. More...
 

Detailed Description

EtherCAT FMMU configuration methods.

Definition in file fmmu_config.c.

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.