⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pcp.h

📁 modbus 源代码,RS485 通信,实现PC与RTU通信
💻 H
字号:
/*******************************************************************************

                                   pcp.c

********************************************************************************

   Written by:   Bennie de Wet

      It is hereby certified that the author of this code specified above
      has made reference only to information that is in the public domain
      or is available to FieldServer Technologies via a duly signed
      non-disclosure agreement. This code is guaranteed free and clear of
      any claim upon it by any third party.

      The basis for this certification includes:
         ( Choose one )
         NDA between _____ Dated _____
         Specific written release ______
         Specific Documentation provided from Vendor ______
         General or specific industry knowledge ____
         Advice from officer of FST _____
         Public domain data/knowledge _______
         Observation of protocol between two operating devices.

   Copyright (c) 1991-2002, FieldServer Technologies.
   1991 Tarob Court, Milpitas, CA 95035, USA
   (408) 262 2299

********************************************************************************

 Versions

  0.00aA  12 Aug 04 BDW  Created
  0.00aD  13 Sep 04 PKD  More dev on PCP driver
  0.00aE  06 Oct 04 PKD  Adding data array support to integrate MSTP and PCP 
  0.00aF  08 Oct 04 PKD  Removed warnings
  
*******************************************************************************/


UINT  pcp_parse_msg( BYTE *pcp_recv_msg ) ;
INT  check_for_comma(INT start_offset, BYTE *buf_in) ;
INT  pcp_send_read_response( VOID ) ; 
INT  pcp_send_write_response( VOID ) ;
VOID pcp_driver ( VOID ) ;
INT  pcp_complete( VOID) ;





typedef struct
{
  INT   pcp_da_name_end ;
  INT   pcp_da_offset ;
  BYTE  pcp_da_name[16] ;
  INT   pcp_msg_type ;
  BYTE  pcp_recv_msg[50] ;
  FLOAT pcp_write_value ;
  FLOAT pcp_read_value ;
  char  pcp_send_msg[20] ;
  char  pcp_send_msg_temp[20] ;
  INT   ux_iptr ;
  INT   ux_optr ;




} PCP_DRV_BD_TYP ;




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -