IgH EtherCAT Master  1.6.9
fsm_slave_scan.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
26
27/****************************************************************************/
28
29#ifndef __EC_FSM_SLAVE_SCAN_H__
30#define __EC_FSM_SLAVE_SCAN_H__
31
32#include "globals.h"
33#include "datagram.h"
34#include "slave.h"
35#include "fsm_sii.h"
36#include "fsm_change.h"
37#include "fsm_coe.h"
38#include "fsm_pdo.h"
39
40/****************************************************************************/
41
44
61
62/****************************************************************************/
63
67
69
72
73/****************************************************************************/
74
75#endif
EtherCAT datagram structure.
EtherCAT state change FSM.
EtherCAT CoE state machines.
EtherCAT PDO configuration state machine structures.
struct ec_fsm_pdo ec_fsm_pdo_t
Definition fsm_pdo.h:42
EtherCAT slave information interface FSM structure.
struct ec_fsm_sii ec_fsm_sii_t
Definition fsm_sii.h:47
struct ec_fsm_slave_config ec_fsm_slave_config_t
void ec_fsm_slave_scan_init(ec_fsm_slave_scan_t *, ec_datagram_t *, ec_fsm_slave_config_t *, ec_fsm_pdo_t *)
Constructor.
int ec_fsm_slave_scan_success(const ec_fsm_slave_scan_t *)
void ec_fsm_slave_scan_clear(ec_fsm_slave_scan_t *)
Destructor.
void ec_fsm_slave_scan_start(ec_fsm_slave_scan_t *, ec_slave_t *)
Start slave scan state machine.
int ec_fsm_slave_scan_exec(ec_fsm_slave_scan_t *)
Executes the current state of the state machine.
struct ec_fsm_slave_scan ec_fsm_slave_scan_t
Global definitions and macros.
struct ec_slave ec_slave_t
Definition globals.h:310
EtherCAT slave structure.
EtherCAT datagram.
Definition datagram.h:79
Finite state machine for scanning an EtherCAT slave.
unsigned int retries
Retries on datagram timeout.
ec_fsm_slave_config_t * fsm_slave_config
Slave configuration state machine to use.
ec_slave_t * slave
Slave the FSM runs on.
void(* state)(ec_fsm_slave_scan_t *)
State function.
ec_fsm_sii_t fsm_sii
SII state machine.
uint16_t sii_offset
SII offset in words.
ec_datagram_t * datagram
Datagram used in the state machine.
ec_fsm_pdo_t * fsm_pdo
PDO configuration state machine to use.