diff options
author | Bill Meier <wmeier@newsguy.com> | 2007-06-06 21:04:22 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2007-06-06 21:04:22 +0000 |
commit | 6e5dc8ea479cf60e229eaf7b0ec279731a1a79ac (patch) | |
tree | ab4550e9d3b98ee3add1017752ccb025f4fc9b75 /epan/dissectors/packet-epl.h | |
parent | 475916db3c9a110549f18e27b80e395aec3042fe (diff) |
Fwom David Buechi: Powerlink dissector enhancement:
The attached patch adds a small enhancement for the ETHERNET Powerlink
dissector (some well-known CANopen device profiles are decoded in human
readable plaintext in the IdentResponse frame).
svn path=/trunk/; revision=22061
Diffstat (limited to 'epan/dissectors/packet-epl.h')
-rw-r--r-- | epan/dissectors/packet-epl.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/epan/dissectors/packet-epl.h b/epan/dissectors/packet-epl.h index dd48ce2fb9..f9e7dce5a0 100644 --- a/epan/dissectors/packet-epl.h +++ b/epan/dissectors/packet-epl.h @@ -304,6 +304,30 @@ static const value_string epl_nmt_ms_vals[] = { {0,NULL} }; + + +// EPL Device Profiles according to CANopen +#define EPL_PROFILE_NO 0 +#define EPL_PROFILE_GENERIC_IO 401 +#define EPL_PROFILE_DRIVE 402 +#define EPL_PROFILE_HMI 403 +#define EPL_PROFILE_MEASURING 404 +#define EPL_PROFILE_PLC 405 +#define EPL_PROFILE_ENCODER 406 + + +static const value_string epl_device_profiles[] = { + {EPL_PROFILE_NO, "No Standard Device"}, + {EPL_PROFILE_GENERIC_IO, "Generic I/O module"}, + {EPL_PROFILE_DRIVE, "Drive and motion control"}, + {EPL_PROFILE_HMI, "Human Machine Interface"}, + {EPL_PROFILE_MEASURING, "Measuring device"}, + {EPL_PROFILE_PLC, "IEC 61131-3 PLC"}, + {EPL_PROFILE_ENCODER, "Encoder"}, + {0,NULL} +}; + + /* SDO SequenceLayer */ #define EPL_ASND_SDO_SEQ_RECEIVE_SEQUENCE_NUMBER_OFFSET 4 #define EPL_ASND_SDO_SEQ_RECEIVE_CON_OFFSET 4 |