IgH EtherCAT Master  1.6.9
fsm_pdo_entry.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
25
26/****************************************************************************/
27
28#ifndef __EC_FSM_PDO_ENTRY_H__
29#define __EC_FSM_PDO_ENTRY_H__
30
31#include "globals.h"
32#include "datagram.h"
33#include "fsm_coe.h"
34
35/****************************************************************************/
36
41
59
60/****************************************************************************/
61
64
66 ec_pdo_t *);
68 const ec_pdo_t *, const ec_pdo_t *);
69
72
73/****************************************************************************/
74
75#endif
EtherCAT datagram structure.
EtherCAT CoE state machines.
struct ec_fsm_coe ec_fsm_coe_t
Definition fsm_coe.h:40
void ec_fsm_pdo_entry_clear(ec_fsm_pdo_entry_t *)
Destructor.
struct ec_fsm_pdo_entry ec_fsm_pdo_entry_t
int ec_fsm_pdo_entry_success(const ec_fsm_pdo_entry_t *)
Get execution result.
void ec_fsm_pdo_entry_start_reading(ec_fsm_pdo_entry_t *, ec_slave_t *, ec_pdo_t *)
Start reading a PDO's entries.
void ec_fsm_pdo_entry_init(ec_fsm_pdo_entry_t *, ec_fsm_coe_t *)
Constructor.
void ec_fsm_pdo_entry_start_configuration(ec_fsm_pdo_entry_t *, ec_slave_t *, const ec_pdo_t *, const ec_pdo_t *)
Start PDO mapping state machine.
int ec_fsm_pdo_entry_exec(ec_fsm_pdo_entry_t *, ec_datagram_t *)
Executes the current state.
Global definitions and macros.
struct ec_slave ec_slave_t
Definition globals.h:310
struct ec_sdo_request ec_sdo_request_t
Definition ecrt.h:309
EtherCAT datagram.
Definition datagram.h:79
PDO configuration state machine.
ec_slave_t * slave
Slave the FSM runs on.
void(* state)(ec_fsm_pdo_entry_t *, ec_datagram_t *)
state function
ec_pdo_t * target_pdo
PDO to read the mapping for.
const ec_pdo_entry_t * entry
Current entry.
ec_fsm_coe_t * fsm_coe
CoE state machine to use.
const ec_pdo_t * source_pdo
PDO with desired mapping.
unsigned int entry_pos
Position in PDO mapping.
unsigned int entry_count
Number of entries.
const ec_pdo_t * cur_pdo
PDO with current mapping (display only).
ec_sdo_request_t request
SDO request.
PDO entry description.
Definition pdo_entry.h:40
PDO description.
Definition pdo.h:41