William Kane / Generic

Dependents:   LaserioLib

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers abp_dpv0di.h Source File

abp_dpv0di.h

00001 /*******************************************************************************
00002 ********************************************************************************
00003 **                                                                            **
00004 ** ABP version 7.16.01 (2015-10-14)                                           **
00005 **                                                                            */
00006 /*******************************************************************************
00007 ********************************************************************************
00008 **
00009 ** File Name
00010 ** ---------
00011 **
00012 ** abp_dpv0di.h
00013 **
00014 ********************************************************************************
00015 ********************************************************************************
00016 **
00017 ** Description
00018 ** -----------
00019 **
00020 ** abp_dpv0di - Anybus-CC Protocol - PROFIBUS DP-V0 Diagnostic object definitions
00021 **
00022 ** This file contains network specific definitions used by the Anybus-CC
00023 ** PROFIBUS DP-V0 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_DPV0DI_H
00046 #define ABP_DPV0DI_H
00047 
00048 
00049 /*******************************************************************************
00050 **
00051 ** Anybus-CC PROFIBUS DP-V0 Diagnostic object constants.
00052 **
00053 ** Object revision: 1.
00054 **
00055 ********************************************************************************
00056 */
00057 
00058 /*------------------------------------------------------------------------------
00059 **
00060 ** The PROFIBUS DP-V0 Diagnostic diagnostic object specific object attributes.
00061 **
00062 **------------------------------------------------------------------------------
00063 */
00064 
00065 enum
00066 {
00067    ABP_DPV0DI_OA_EXT_DIAG_OVERFLOW  = 12,
00068    ABP_DPV0DI_OA_STATIC_DIAG        = 13
00069 };
00070 
00071 
00072 /*------------------------------------------------------------------------------
00073 **
00074 ** The data size of the PROFIBUS DP-V0 Diagnostic diagnostic object specific object
00075 ** attributes (in bytes).
00076 **
00077 **------------------------------------------------------------------------------
00078 */
00079 
00080 #define ABP_DPV0DI_OA_MAX_INST_DS            ABP_UINT16_SIZEOF
00081 #define ABP_DPV0DI_OA_EXT_DIAG_OVERFLOW_DS   ABP_UINT8_SIZEOF
00082 #define ABP_DPV0DI_OA_STATIC_DIAG_DS         ABP_UINT8_SIZEOF
00083 
00084 
00085 /*------------------------------------------------------------------------------
00086 **
00087 ** PROFIBUS DP-V0 Diagnostic Diagnostic instance attributes.
00088 **
00089 **------------------------------------------------------------------------------
00090 */
00091 
00092 enum
00093 {
00094    ABP_DPV0DI_IA_DIAG_DATA       = 1
00095 };
00096 
00097 
00098 /*------------------------------------------------------------------------------
00099 **
00100 ** PROFIBUS DP-V0 Diagnostic Diagnostic object specific error codes
00101 **
00102 **------------------------------------------------------------------------------
00103 */
00104 
00105 enum
00106 {
00107    ABP_DPV0DI_ERR_NO_ERROR                   = 0x00,
00108    ABP_DPV0DI_ERR_STD_DIAG_OBJ_USED          = 0x01,
00109    ABP_DPV0DI_ERR_INVALID_EXT_DIAG_FLAG      = 0x02,
00110    ABP_DPV0DI_ERR_ADD_DIAG_OBJ_USED          = 0x03
00111 };
00112 
00113 
00114 
00115 /*------------------------------------------------------------------------------
00116 **
00117 ** Values of Extended Diagnostic Flag attribute
00118 **
00119 **------------------------------------------------------------------------------
00120 */
00121 
00122 enum
00123 {
00124    ABP_DPV0DI_EXT_DIAG_FLAG_DISABLE     = 0x00,
00125    ABP_DPV0DI_EXT_DIAG_FLAG_ENABLE      = 0x01
00126 };
00127 
00128 
00129 #endif  /* inclusion lock */
00130 
00131 /*******************************************************************************
00132 **
00133 ** End of abp_dpv0di.h
00134 **
00135 ********************************************************************************
00136 */