IgH EtherCAT Master  1.5.3
reg_request.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * $Id$
4  *
5  * Copyright (C) 2012 Florian Pose, Ingenieurgemeinschaft IgH
6  *
7  * This file is part of the IgH EtherCAT Master.
8  *
9  * The IgH EtherCAT Master is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License version 2, as
11  * published by the Free Software Foundation.
12  *
13  * The IgH EtherCAT Master is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
16  * Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with the IgH EtherCAT Master; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  * ---
23  *
24  * The license mentioned above concerns the source code only. Using the
25  * EtherCAT technology and brand is only permitted in compliance with the
26  * industrial property and similar rights of Beckhoff Automation GmbH.
27  *
28  *****************************************************************************/
29 
35 /*****************************************************************************/
36 
37 #ifndef __EC_REG_REQUEST_H__
38 #define __EC_REG_REQUEST_H__
39 
40 #include <linux/list.h>
41 
42 #include "globals.h"
43 
44 /*****************************************************************************/
45 
49  struct list_head list;
50  size_t mem_size;
51  uint8_t *data;
54  uint16_t address;
55  size_t transfer_size;
57  uint16_t ring_position;
58 };
59 
60 /*****************************************************************************/
61 
64 
65 /*****************************************************************************/
66 
67 #endif
uint16_t ring_position
Ring position for emergency requests.
Definition: reg_request.h:57
ec_internal_request_state_t state
Request state.
Definition: reg_request.h:56
size_t transfer_size
Size of the data to transfer.
Definition: reg_request.h:55
uint16_t address
Register address.
Definition: reg_request.h:54
Register request.
Definition: reg_request.h:48
size_t mem_size
Size of data memory.
Definition: reg_request.h:50
void ec_reg_request_clear(ec_reg_request_t *)
Register request destructor.
Definition: reg_request.c:73
Global definitions and macros.
ec_internal_request_state_t
Generic request state.
Definition: globals.h:278
int ec_reg_request_init(ec_reg_request_t *, size_t)
Register request constructor.
Definition: reg_request.c:48
ec_direction_t
Direction type for PDO assignment functions.
Definition: ecrt.h:446
uint8_t * data
Pointer to data memory.
Definition: reg_request.h:51
ec_direction_t dir
Direction.
Definition: reg_request.h:52
struct list_head list
List item.
Definition: reg_request.h:49