IgH EtherCAT Master  1.6.2
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 
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 
48 {
54  unsigned int retries;
57  uint16_t sii_offset;
60 };
61 
62 /****************************************************************************/
63 
67 
69 
72 
73 /****************************************************************************/
74 
75 #endif
ec_slave_t * slave
Slave the FSM runs on.
ec_datagram_t * datagram
Datagram used in the state machine.
EtherCAT state change FSM.
void ec_fsm_slave_scan_start(ec_fsm_slave_scan_t *, ec_slave_t *)
Start slave scan state machine.
Slave information interface FSM.
Definition: fsm_sii.h:53
EtherCAT slave structure.
EtherCAT datagram.
Definition: datagram.h:79
EtherCAT PDO configuration state machine structures.
Global definitions and macros.
EtherCAT CoE state machines.
ec_fsm_slave_config_t * fsm_slave_config
Slave configuration state machine to use.
EtherCAT slave.
Definition: slave.h:168
ec_fsm_pdo_t * fsm_pdo
PDO configuration state machine to use.
ec_fsm_sii_t fsm_sii
SII state machine.
Finite state machine for scanning an EtherCAT slave.
int ec_fsm_slave_scan_exec(ec_fsm_slave_scan_t *)
Executes the current state of the state machine.
unsigned int retries
Retries on datagram timeout.
EtherCAT datagram structure.
PDO configuration state machine.
Definition: fsm_pdo.h:46
EtherCAT slave information interface FSM structure.
void ec_fsm_slave_scan_clear(ec_fsm_slave_scan_t *)
Destructor.
Finite state machine to configure an EtherCAT slave.
void(* state)(ec_fsm_slave_scan_t *)
State function.
uint16_t sii_offset
SII offset in words.
int ec_fsm_slave_scan_success(const ec_fsm_slave_scan_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.