From 0e25f6d80fcd348b1d2fe1db706c3542c92b8195 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Thu, 6 Nov 2014 08:55:35 +0100 Subject: [PATCH] Removed obsolete mailbox type name and clarified documentation. --- master/globals.h | 3 +++ master/mailbox.h | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/master/globals.h b/master/globals.h index a0c820df..69f313bf 100644 --- a/master/globals.h +++ b/master/globals.h @@ -130,6 +130,9 @@ typedef enum { } ec_slave_state_t; /** Supported mailbox protocols. + * + * Not to mix up with the mailbox type field in the mailbox header defined in + * master/mailbox.h. */ enum { EC_MBOX_AOE = 0x01, /**< ADS over EtherCAT */ diff --git a/master/mailbox.h b/master/mailbox.h index db130ff1..18a5d4ab 100644 --- a/master/mailbox.h +++ b/master/mailbox.h @@ -46,8 +46,10 @@ #define EC_MBOX_HEADER_SIZE 6 /** Mailbox types. + * + * These are used in the 'Type' field of the mailbox header. */ -enum ec_mbox_types { +enum { EC_MBOX_TYPE_EOE = 0x02, EC_MBOX_TYPE_COE = 0x03, EC_MBOX_TYPE_FOE = 0x04,