IgH EtherCAT Master  1.5.3
flag.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * Copyright (C) 2021 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_FLAG_H__
30 #define __EC_FLAG_H__
31 
32 #include <linux/list.h>
33 
34 /****************************************************************************/
35 
38 typedef struct {
39  struct list_head list;
40  char *key;
41  int32_t value;
42 } ec_flag_t;
43 
44 /****************************************************************************/
45 
46 int ec_flag_init(ec_flag_t *, const char *, int32_t);
47 void ec_flag_clear(ec_flag_t *);
48 
49 /****************************************************************************/
50 
51 #endif
char * key
Flag key (null-terminated ASCII string.
Definition: flag.h:40
void ec_flag_clear(ec_flag_t *)
SDO request destructor.
Definition: flag.c:59
Slave configutation feature flag.
Definition: flag.h:38
int32_t value
Flag value (meaning depends on key).
Definition: flag.h:41
int ec_flag_init(ec_flag_t *, const char *, int32_t)
SDO request constructor.
Definition: flag.c:36