IgH EtherCAT Master
1.6.2
sdo_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_SDO_ENTRY_H__
30
#define __EC_SDO_ENTRY_H__
31
32
#include <linux/list.h>
33
#include <linux/kobject.h>
34
35
#include "
globals.h
"
36
37
/****************************************************************************/
38
39
struct
ec_sdo
;
40
typedef
struct
ec_sdo
ec_sdo_t
;
42
/****************************************************************************/
43
46
typedef
struct
{
47
struct
list_head
list
;
48
ec_sdo_t
*
sdo
;
49
uint8_t
subindex
;
50
uint16_t
data_type
;
51
uint16_t
bit_length
;
52
uint8_t read_access[
EC_SDO_ENTRY_ACCESS_COUNT
];
53
uint8_t write_access[
EC_SDO_ENTRY_ACCESS_COUNT
];
54
char
*
description
;
55
}
ec_sdo_entry_t
;
56
57
/****************************************************************************/
58
59
void
ec_sdo_entry_init
(
ec_sdo_entry_t
*,
ec_sdo_t
*, uint8_t);
60
void
ec_sdo_entry_clear
(
ec_sdo_entry_t
*);
61
62
/****************************************************************************/
63
64
#endif
ec_sdo_entry_init
void ec_sdo_entry_init(ec_sdo_entry_t *, ec_sdo_t *, uint8_t)
Constructor.
Definition:
sdo_entry.c:37
ec_sdo_entry_t
CANopen SDO entry.
Definition:
sdo_entry.h:46
ec_sdo_entry_clear
void ec_sdo_entry_clear(ec_sdo_entry_t *)
Destructor.
Definition:
sdo_entry.c:60
ec_sdo_entry_t::bit_length
uint16_t bit_length
Data size in bit.
Definition:
sdo_entry.h:51
ec_sdo::list
struct list_head list
List item.
Definition:
sdo.h:42
ec_sdo
CANopen SDO.
Definition:
sdo.h:41
globals.h
Global definitions and macros.
ec_sdo_entry_t::description
char * description
Description.
Definition:
sdo_entry.h:54
ec_sdo_entry_t::data_type
uint16_t data_type
Data type.
Definition:
sdo_entry.h:50
ec_sdo_entry_t::sdo
ec_sdo_t * sdo
Parent SDO.
Definition:
sdo_entry.h:48
ec_sdo_entry_t::subindex
uint8_t subindex
Subindex.
Definition:
sdo_entry.h:49
EC_SDO_ENTRY_ACCESS_COUNT
Number of states.
Definition:
globals.h:193
Documentation automatically created by
. - IgH EtherCAT Master developed by
Ingenieurgemeinschaft IgH GmbH
. All rights reserved.