--- a/master/globals.h Thu Apr 20 13:19:36 2006 +0000
+++ b/master/globals.h Thu Apr 20 13:31:31 2006 +0000
@@ -2,7 +2,7 @@
*
* g l o b a l s . h
*
- * Globale Definitionen und Makros für das EtherCAT-Protokoll.
+ * Global definitions and macros.
*
* $Id$
*
@@ -16,21 +16,20 @@
/*****************************************************************************/
// EtherCAT-Protokoll
-#define EC_MAX_FRAME_SIZE 1500 /**< Maximale Größe eines EtherCAT-Frames ohne
- Ethernet-II-Header und -Prüfsumme */
-#define EC_MIN_FRAME_SIZE 46 /** Minimale Größe, s. o. */
-#define EC_FRAME_HEADER_SIZE 2 /**< Größe des EtherCAT-Frame-Headers */
-#define EC_COMMAND_HEADER_SIZE 10 /**< Größe eines EtherCAT-Kommando-Headers */
-#define EC_COMMAND_FOOTER_SIZE 2 /**< Größe eines EtherCAT-Kommando-Footers */
-#define EC_SYNC_SIZE 8 /**< Größe einer Sync-Manager-Konfigurationsseite */
-#define EC_FMMU_SIZE 16 /**< Größe einer FMMU-Konfigurationsseite */
-#define EC_MAX_FMMUS 16 /**< Maximale Anzahl FMMUs pro Slave */
+#define EC_MAX_FRAME_SIZE 1500 /**< maximum size of an EtherCAT frame (without
+ header and CRC) */
+#define EC_MIN_FRAME_SIZE 46 /** ... minimum size */
+#define EC_FRAME_HEADER_SIZE 2 /**< size of an EtherCAT frame header */
+#define EC_COMMAND_HEADER_SIZE 10 /**< size of an EtherCAT command header */
+#define EC_COMMAND_FOOTER_SIZE 2 /**< size of an EtherCAT command footer */
+#define EC_SYNC_SIZE 8 /**< size of a sync manager configuration page */
+#define EC_FMMU_SIZE 16 /**< size of an FMMU configuration page */
+#define EC_MAX_FMMUS 16 /**< maximum number of FMMUs per slave */
#define EC_MAX_DATA_SIZE (EC_MAX_FRAME_SIZE \
- EC_FRAME_HEADER_SIZE \
- EC_COMMAND_HEADER_SIZE \
- - EC_COMMAND_FOOTER_SIZE) /**< Maximale Datengröße
- bei einem Kommando pro
- Frame */
+ - EC_COMMAND_FOOTER_SIZE) /**< maximum data size of a
+ single command */
/*****************************************************************************/
@@ -59,16 +58,15 @@
/*****************************************************************************/
/**
- Code - Message Pair.
-
+ Code - Message pair.
Some EtherCAT commands support reading a status code to display a certain
message. This type allows to map a code to a message string.
*/
typedef struct
{
- uint32_t code; /**< Code */
- const char *message; /**< Message belonging to \a code */
+ uint32_t code; /**< code */
+ const char *message; /**< message belonging to \a code */
}
ec_code_msg_t;
@@ -76,8 +74,3 @@
#endif
-/* Emacs-Konfiguration
-;;; Local Variables: ***
-;;; c-basic-offset:4 ***
-;;; End: ***
-*/