IgH EtherCAT Master  1.6.9
fsm_eoe.h
Go to the documentation of this file.
1/*****************************************************************************
2 *
3 * Copyright (C) 2006-2014 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_FSM_EOE_H__
30#define __EC_FSM_EOE_H__
31
32#include "globals.h"
33#include "datagram.h"
34#include "slave.h"
35#include "eoe_request.h"
36
37/****************************************************************************/
38
39typedef struct ec_fsm_eoe ec_fsm_eoe_t;
40
53
54/****************************************************************************/
55
58
61
64
65/****************************************************************************/
66
67#endif
EtherCAT datagram structure.
EtherCAT EoE request structure.
void ec_fsm_eoe_clear(ec_fsm_eoe_t *)
Destructor.
Definition fsm_eoe.c:94
int ec_fsm_eoe_exec(ec_fsm_eoe_t *, ec_datagram_t *)
Executes the current state of the state machine.
Definition fsm_eoe.c:121
void ec_fsm_eoe_set_ip_param(ec_fsm_eoe_t *, ec_slave_t *, ec_eoe_request_t *)
Starts to set the EoE IP partameters of a slave.
Definition fsm_eoe.c:104
struct ec_fsm_eoe ec_fsm_eoe_t
Definition fsm_eoe.h:39
void ec_fsm_eoe_init(ec_fsm_eoe_t *)
Constructor.
Definition fsm_eoe.c:77
int ec_fsm_eoe_success(const ec_fsm_eoe_t *)
Returns, if the state machine terminated with success.
Definition fsm_eoe.c:156
Global definitions and macros.
struct ec_slave ec_slave_t
Definition globals.h:310
EtherCAT slave structure.
EtherCAT datagram.
Definition datagram.h:79
Ethernet-over-EtherCAT set IP parameter request.
Definition eoe_request.h:41
Finite state machines for the Ethernet over EtherCAT protocol.
Definition fsm_eoe.h:43
unsigned int retries
retries upon datagram timeout
Definition fsm_eoe.h:45
unsigned long jiffies_start
Timestamp.
Definition fsm_eoe.h:49
void(* state)(ec_fsm_eoe_t *, ec_datagram_t *)
EoE state function.
Definition fsm_eoe.h:47
ec_datagram_t * datagram
Datagram used in the previous step.
Definition fsm_eoe.h:48
ec_eoe_request_t * request
EoE request.
Definition fsm_eoe.h:50
unsigned int frame_type_retries
retries upon wrong frame type.
Definition fsm_eoe.h:51
ec_slave_t * slave
slave the FSM runs on
Definition fsm_eoe.h:44