William Kane / Generic

Dependents:   LaserioLib

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers abp_nwdpv1.h Source File

abp_nwdpv1.h

00001 /*******************************************************************************
00002 ********************************************************************************
00003 **                                                                            **
00004 ** ABP version 7.16.01 (2015-10-14)                                           **
00005 **                                                                            */
00006 /*******************************************************************************
00007 ********************************************************************************
00008 **
00009 ** File Name
00010 ** ---------
00011 **
00012 ** abp_nwdpv1.h
00013 **
00014 ********************************************************************************
00015 ********************************************************************************
00016 **
00017 ** Description
00018 ** -----------
00019 **
00020 ** abp_nwdpv1 - Anybus-CC Protocol - Network PROFIBUS DP-V1 object definitions
00021 **
00022 ** This file contains network specific definitions used by the Anybus-CC
00023 ** PROFIBUS module as well as applications designed to use such module.
00024 **
00025 ********************************************************************************
00026 ********************************************************************************
00027 **                                                                            **
00028 ** COPYRIGHT NOTIFICATION (c) 2008 HMS Industrial Networks AB                 **
00029 **                                                                            **
00030 ** This code is the property of HMS Industrial Networks AB.                   **
00031 ** The source code may not be reproduced, distributed, or used without        **
00032 ** permission. When used together with a product from HMS, this code can be   **
00033 ** modified, reproduced and distributed in binary form without any            **
00034 ** restrictions.                                                              **
00035 **                                                                            **
00036 ** THE CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. HMS DOES NOT    **
00037 ** WARRANT THAT THE FUNCTIONS OF THE CODE WILL MEET YOUR REQUIREMENTS, OR     **
00038 ** THAT THE OPERATION OF THE CODE WILL BE UNINTERRUPTED OR ERROR-FREE, OR     **
00039 ** THAT DEFECTS IN IT CAN BE CORRECTED.                                       **
00040 **                                                                            **
00041 ********************************************************************************
00042 ********************************************************************************
00043 */
00044 
00045 #ifndef ABP_NWDPV1_H
00046 #define ABP_NWDPV1_H
00047 
00048 
00049 /*******************************************************************************
00050 **
00051 ** Anybus-CC Network PROFIBUS DP-V1 object constants.
00052 **
00053 ** Object revision: 1.
00054 **
00055 ********************************************************************************
00056 */
00057 
00058 /*------------------------------------------------------------------------------
00059 **
00060 ** The Network PROFIBUS DP-V1 object specific message commands.
00061 **
00062 **------------------------------------------------------------------------------
00063 */
00064 
00065 enum
00066 {
00067    ABP_NWDPV1_CMD_MAP_ADI_WRITE_AREA = 0x10,
00068    ABP_NWDPV1_CMD_MAP_ADI_READ_AREA  = 0x11
00069 };
00070 
00071 
00072 /*------------------------------------------------------------------------------
00073 **
00074 ** The Network PROFIBUS DP-V1 object specific error codes.
00075 **
00076 **------------------------------------------------------------------------------
00077 */
00078 
00079 enum
00080 {
00081    ABP_NWDPV1_ERR_INVALID_ADI_DATA_TYPE   = 0x01,
00082    ABP_NWDPV1_ERR_INVALID_NUM_ELEMENTS    = 0x02,
00083    ABP_NWDPV1_ERR_INVALID_TOTAL_SIZE      = 0x03,
00084    ABP_NWDPV1_ERR_INVALID_ORDER_NUM       = 0x04,
00085    ABP_NWDPV1_ERR_INVALID_MAP_CMD_SEQ     = 0x05,
00086    ABP_NWDPV1_ERR_INVALID_CFG_DATA        = 0x06,
00087    ABP_NWDPV1_ERR_TOO_MUCH_TOTAL_CFG_DATA = 0x07
00088 };
00089 
00090 
00091 #endif  /* inclusion lock */
00092 
00093 /*******************************************************************************
00094 **
00095 ** End of abp_nwdpv1.h
00096 **
00097 ********************************************************************************
00098 */