--- a/drivers/ec_master.h Fri Jan 13 15:47:44 2006 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,96 +0,0 @@
-/******************************************************************************
- *
- * e c _ m a s t e r . h
- *
- * Struktur für einen EtherCAT-Master.
- *
- * $Id$
- *
- *****************************************************************************/
-
-#ifndef _EC_MASTER_H_
-#define _EC_MASTER_H_
-
-#include "ec_device.h"
-#include "ec_slave.h"
-#include "ec_command.h"
-#include "ec_domain.h"
-
-/*****************************************************************************/
-
-/**
- EtherCAT-Master
-
- Verwaltet die EtherCAT-Slaves und kommuniziert mit
- dem zugewiesenen EtherCAT-Gerät.
-*/
-
-struct EtherCAT_master
-{
- EtherCAT_slave_t *bus_slaves; /**< Array von Slaves auf dem Bus */
- unsigned int bus_slaves_count; /**< Anzahl Slaves auf dem Bus */
- EtherCAT_device_t *dev; /**< Zeiger auf das zugewiesene EtherCAT-Gerät */
- unsigned char command_index; /**< Aktueller Kommando-Index */
- unsigned char tx_data[ECAT_FRAME_BUFFER_SIZE]; /**< Statischer Speicher
- für zu sendende Daten */
- unsigned int tx_data_length; /**< Länge der Daten im Sendespeicher */
- unsigned char rx_data[ECAT_FRAME_BUFFER_SIZE]; /**< Statische Speicher für
- eine Kopie des Rx-Buffers
- im EtherCAT-Gerät */
- unsigned int rx_data_length; /**< Länge der Daten im Empfangsspeicher */
- EtherCAT_domain_t domains[ECAT_MAX_DOMAINS]; /** Prozessdatendomänen */
- unsigned int domain_count;
- int debug_level; /**< Debug-Level im Master-Code */
- unsigned int bus_time; /**< Letzte Bus-Zeit in Mikrosekunden */
- unsigned int frames_lost; /**< Anzahl verlorene Frames */
- unsigned long t_lost_output; /*<< Timer-Ticks bei der letzten Ausgabe von
- verlorenen Frames */
-};
-
-/*****************************************************************************/
-
-// Public methods
-
-void *EtherCAT_register_slave(EtherCAT_master_t *, unsigned int,
- const char *, const char *, unsigned int);
-int EtherCAT_activate_slave(EtherCAT_master_t *, EtherCAT_slave_t *);
-int EtherCAT_deactivate_slave(EtherCAT_master_t *, EtherCAT_slave_t *);
-int EtherCAT_process_data_cycle(EtherCAT_master_t *, unsigned int,
- unsigned int);
-
-// Private Methods
-
-// Master creation and deletion
-void EtherCAT_master_init(EtherCAT_master_t *);
-void EtherCAT_master_clear(EtherCAT_master_t *);
-
-// Registration of devices
-int EtherCAT_master_open(EtherCAT_master_t *, EtherCAT_device_t *);
-void EtherCAT_master_close(EtherCAT_master_t *, EtherCAT_device_t *);
-
-// Sending and receiving
-int EtherCAT_simple_send_receive(EtherCAT_master_t *, EtherCAT_command_t *);
-int EtherCAT_simple_send(EtherCAT_master_t *, EtherCAT_command_t *);
-int EtherCAT_simple_receive(EtherCAT_master_t *, EtherCAT_command_t *);
-
-// Slave management
-int EtherCAT_scan_for_slaves(EtherCAT_master_t *);
-int EtherCAT_read_slave_information(EtherCAT_master_t *, unsigned short int,
- unsigned short int, unsigned int *);
-int EtherCAT_state_change(EtherCAT_master_t *, EtherCAT_slave_t *,
- unsigned char);
-
-// Misc.
-
-void output_debug_data(const EtherCAT_master_t *);
-void ecat_output_lost_frames(EtherCAT_master_t *);
-
-/*****************************************************************************/
-
-#endif
-
-/* Emacs-Konfiguration
-;;; Local Variables: ***
-;;; c-basic-offset:2 ***
-;;; End: ***
-*/