IgH EtherCAT Master  1.6.9
datagram_pair.h
Go to the documentation of this file.
1/*****************************************************************************
2 *
3 * Copyright (C) 2006-2012 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
29#ifndef __EC_DATAGRAM_PAIR_H__
30#define __EC_DATAGRAM_PAIR_H__
31
32#include <linux/list.h>
33
34#include "globals.h"
35#include "datagram.h"
36
37/****************************************************************************/
38
41typedef struct {
42 struct list_head list;
44 ec_datagram_t datagrams[EC_MAX_NUM_DEVICES];
45#if EC_MAX_NUM_DEVICES > 1
46 uint8_t *send_buffer;
47#endif
50
51/****************************************************************************/
52
54 uint8_t *, size_t, const unsigned int []);
56
57uint16_t ec_datagram_pair_process(ec_datagram_pair_t *, uint16_t[]);
58
59/****************************************************************************/
60
61#endif
EtherCAT datagram structure.
int ec_datagram_pair_init(ec_datagram_pair_t *, ec_domain_t *, uint32_t, uint8_t *, size_t, const unsigned int[])
Datagram pair constructor.
uint16_t ec_datagram_pair_process(ec_datagram_pair_t *, uint16_t[])
Process received data.
void ec_datagram_pair_clear(ec_datagram_pair_t *)
Datagram pair destructor.
Global definitions and macros.
struct ec_domain ec_domain_t
Definition ecrt.h:306
Domain datagram pair.
ec_datagram_t datagrams[EC_MAX_NUM_DEVICES]
Datagrams.
struct list_head list
List header.
unsigned int expected_working_counter
Expectord working conter.
ec_domain_t * domain
Parent domain.
EtherCAT datagram.
Definition datagram.h:79