IgH EtherCAT Master  1.6.1
pdo_entry.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 
27 /****************************************************************************/
28 
29 #ifndef __EC_PDO_ENTRY_H__
30 #define __EC_PDO_ENTRY_H__
31 
32 #include <linux/list.h>
33 
34 #include "globals.h"
35 
36 /****************************************************************************/
37 
40 typedef struct {
41  struct list_head list;
42  uint16_t index;
43  uint8_t subindex;
44  char *name;
45  uint8_t bit_length;
47 
48 /****************************************************************************/
49 
53 int ec_pdo_entry_set_name(ec_pdo_entry_t *, const char *);
55 
56 /****************************************************************************/
57 
58 #endif
int ec_pdo_entry_init_copy(ec_pdo_entry_t *, const ec_pdo_entry_t *)
PDO entry copy constructor.
Definition: pdo_entry.c:51
void ec_pdo_entry_clear(ec_pdo_entry_t *)
PDO entry destructor.
Definition: pdo_entry.c:68
Global definitions and macros.
PDO entry description.
Definition: pdo_entry.h:40
uint16_t index
PDO entry index.
Definition: pdo_entry.h:42
uint8_t bit_length
entry length in bit
Definition: pdo_entry.h:45
int ec_pdo_entry_equal(const ec_pdo_entry_t *, const ec_pdo_entry_t *)
Compares two PDO entries.
Definition: pdo_entry.c:114
uint8_t subindex
PDO entry subindex.
Definition: pdo_entry.h:43
void ec_pdo_entry_init(ec_pdo_entry_t *)
PDO entry constructor.
Definition: pdo_entry.c:37
char * name
entry name
Definition: pdo_entry.h:44
int ec_pdo_entry_set_name(ec_pdo_entry_t *, const char *)
Set PDO entry name.
Definition: pdo_entry.c:81