IgH EtherCAT Master  1.6.2
fmmu_config.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH
4  *
5  * This file is part of the IgH EtherCAT Master.
6  *
7  * The IgH EtherCAT Master is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License version 2, as
9  * published by the Free Software Foundation.
10  *
11  * The IgH EtherCAT Master is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14  * Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with the IgH EtherCAT Master; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  ****************************************************************************/
21 
26 /****************************************************************************/
27 
28 #ifndef __EC_FMMU_CONFIG_H__
29 #define __EC_FMMU_CONFIG_H__
30 
31 #include "globals.h"
32 #include "sync.h"
33 
34 /****************************************************************************/
35 
38 typedef struct {
39  struct list_head list;
42  uint8_t sync_index;
45  unsigned int data_size;
47 
48 /****************************************************************************/
49 
51  ec_domain_t *, uint8_t, ec_direction_t);
52 
53 void ec_fmmu_config_page(const ec_fmmu_config_t *, const ec_sync_t *,
54  uint8_t *);
55 
56 /****************************************************************************/
57 
58 #endif
const ec_slave_config_t * sc
EtherCAT slave config.
Definition: fmmu_config.h:40
FMMU configuration.
Definition: fmmu_config.h:38
unsigned int data_size
Covered PDO size.
Definition: fmmu_config.h:45
Global definitions and macros.
uint32_t logical_start_address
Logical start address.
Definition: fmmu_config.h:44
const ec_domain_t * domain
Domain.
Definition: fmmu_config.h:41
uint8_t sync_index
Index of sync manager to use.
Definition: fmmu_config.h:42
Sync manager.
Definition: sync.h:39
ec_direction_t
Direction type for PDO assignment functions.
Definition: ecrt.h:504
EtherCAT sync manager.
void ec_fmmu_config_page(const ec_fmmu_config_t *, const ec_sync_t *, uint8_t *)
Initializes an FMMU configuration page.
Definition: fmmu_config.c:68
EtherCAT slave configuration.
Definition: slave_config.h:111
ec_direction_t dir
FMMU direction.
Definition: fmmu_config.h:43
EtherCAT domain.
Definition: domain.h:46
void ec_fmmu_config_init(ec_fmmu_config_t *, ec_slave_config_t *, ec_domain_t *, uint8_t, ec_direction_t)
FMMU configuration constructor.
Definition: fmmu_config.c:42