资源简介
MSP430F5529移植modbus。。。。。。。。。。。。。。。。。。。。。。。。。。。。
代码片段和文件信息
/*
* FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter
* All rights reserved.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ‘‘AS IS‘‘ AND ANY EXPRESS OR
* IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT INDIRECT
* INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT
* NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
* DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* File: $Id: mb.cv 1.28 2010/06/06 13:54:40 wolti Exp $
*/
/* ----------------------- System includes ----------------------------------*/
#include “stdlib.h“
#include “string.h“
/* ----------------------- Platform includes --------------------------------*/
#include “port.h“
/* ----------------------- Modbus includes ----------------------------------*/
#include “mb.h“
#include “mbconfig.h“
#include “mbframe.h“
#include “mbproto.h“
#include “mbfunc.h“
#include “mbport.h“
#if MB_RTU_ENABLED == 1
#include “mbrtu.h“
#endif
#if MB_ASCII_ENABLED == 1
#include “mbascii.h“
#endif
#if MB_TCP_ENABLED == 1
#include “mbtcp.h“
#endif
#ifndef MB_PORT_HAS_CLOSE
#define MB_PORT_HAS_CLOSE 0
#endif
/* ----------------------- Static variables ---------------------------------*/
static UCHAR ucMBAddress;
static eMBMode eMBCurrentMode;
static enum
{
STATE_ENABLED
STATE_DISABLED
STATE_NOT_INITIALIZED
} eMBState = STATE_NOT_INITIALIZED;
/* Functions pointer which are initialized in eMBInit( ). Depending on the
* mode (RTU or ASCII) the are set to the correct implementations.
*/
static peMBframeSend peMBframeSendCur;
static pvMBframeStart pvMBframeStartCur;
static pvMBframeStop pvMBframeStopCur;
static peMBframeReceive peMBframeReceiveCur;
static pvMBframeClose pvMBframeCloseCur;
/* Callback functions required by the portin
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-07-16 10:00 ModeBus\
目录 0 2018-07-16 09:57 ModeBus\MY_C\
目录 0 2018-07-16 09:57 ModeBus\MY_C\DS18B20\
文件 2661 2018-07-08 10:34 ModeBus\MY_C\DS18B20\ds18b20.c
文件 885 2018-07-09 11:40 ModeBus\MY_C\DS18B20\ds18b20.h
目录 0 2018-07-16 09:57 ModeBus\MY_C\IIC\
文件 3852 2018-07-04 21:59 ModeBus\MY_C\IIC\i2c.c
文件 451 2018-07-04 21:58 ModeBus\MY_C\IIC\i2c.h
目录 0 2018-07-16 09:57 ModeBus\MY_C\RTC_\
文件 2044 2018-07-08 10:30 ModeBus\MY_C\RTC_\rtc_.c
文件 262 2018-07-08 10:44 ModeBus\MY_C\RTC_\rtc_.h
目录 0 2018-07-16 09:57 ModeBus\MY_C\USART\
文件 3002 2018-07-05 17:24 ModeBus\MY_C\USART\usart.c
文件 1246 2018-07-07 21:05 ModeBus\MY_C\USART\usart.h
目录 0 2018-07-20 19:03 ModeBus\Project\
目录 0 2018-07-16 09:57 ModeBus\Project\Debug\
目录 0 2018-07-16 16:27 ModeBus\Project\Debug\Exe\
文件 66888 2018-07-09 10:39 ModeBus\Project\Debug\Exe\DS18B20.d43
文件 91021 2018-07-20 16:53 ModeBus\Project\Debug\Exe\MSP430-ModBus.d43
文件 66984 2018-07-09 11:40 ModeBus\Project\Debug\Exe\Template.d43
目录 0 2018-07-16 16:27 ModeBus\Project\Debug\List\
文件 58576 2018-07-09 10:39 ModeBus\Project\Debug\List\DS18B20.map
文件 78841 2018-07-20 16:53 ModeBus\Project\Debug\List\MSP430-ModBus.map
文件 59386 2018-07-09 11:40 ModeBus\Project\Debug\List\Template.map
目录 0 2018-07-20 20:05 ModeBus\Project\Debug\Obj\
文件 716249 2018-07-20 20:05 ModeBus\Project\Debug\Obj\MSP430-ModBus.pbd
文件 716249 2018-07-20 20:05 ModeBus\Project\Debug\Obj\MSP430-ModBus.pbd.browse
文件 936 2018-07-20 20:05 ModeBus\Project\Debug\Obj\MSP430-ModBus.pbd.linf
文件 639632 2018-07-09 11:28 ModeBus\Project\Debug\Obj\Template.pbd
文件 527 2018-07-09 11:28 ModeBus\Project\Debug\Obj\Template.pbd.linf
文件 585412 2018-07-16 17:12 ModeBus\Project\Debug\Obj\dco.pbi
............此处省略135个文件信息
相关资源
- 台达A2伺服MODBUS通讯调试工具
- stm32实现modbus主机从机功能通信
- 安卓组态软件MODBUS.rar
- 总结——调试STM32F103ZET6外围传感器
- modscan32 破解版解压即可用
- STM32 MODBUS_RTU从站程序,KEIL编写
- ModbusTools_破解版
- FreeModbus_For_STM32_USART1_RS485移植分享
- MODBUS电压电流表程序+上位机
- S71500 modbustcp设置说明及TIA15程序
- STM32 ModBus RTU 从机程序
- Modbus测试工具和Modbus数据模拟器
- labview ModbusTCP与三菱PLC通讯
- qt下的modbus Tcp通讯程序
- Modbus完整资料(Modbus详解电子书 lib
- labview modbus tcp通讯llb文件
- Modbus TCP Server Tester
- modbus_poll和modbus_slave_64bit.rar
- 用KEIL编写的MODBUS_RTU从站程序STM32
- VC MODBUS协议上位机程序
- MODBUS通讯协议中文版.pdf
- nmodbus源代码
- modbus测试工具主站,从站
- MODBUS TCP/RTU调试工具,附主子站模拟器
- MODBUS协议中文完整版+资料
- stm32f103 modbus主站工程
- ABB REF542 modbus 培训资料.pdf
- LabVIEW modbus 库 lib
- 西门子300 PLC MODBUS TCP通讯 程序
- Modbus TCP/RTU 服务端、客户端源码、协
评论
共有 条评论