资源简介
DeviceNet协议代码 DeviceNet协议代码 DeviceNet协议代码
代码片段和文件信息
/*****************************************************************************
*
* Microchip DeviceNet Stack (Application Example)
*
*****************************************************************************
* FileName: app.c
* Dependencies:
* Processor: PIC18F with CAN
* Compiler: C18 02.20.00 or higher
* linker: MPlink 03.40.00 or higher
* Company: Microchip Technology Incorporated
*
* Software License Agreement
*
* The software supplied herewith by Microchip Technology Incorporated
* (the “Company“) is intended and supplied to you the Company‘s
* customer for use solely and exclusively with products manufactured
* by the Company.
*
* The software is owned by the Company and/or its supplier and is
* protected under applicable copyright laws. All rights are reserved.
* Any use in violation of the foregoing restrictions may subject the
* user to criminal sanctions under applicable laws as well as to
* civil liability for the breach of the terms and conditions of this
* license.
*
* THIS SOFTWARE IS PROVIDED IN AN “AS IS“ CONDITION. NO WARRANTIES
* WHETHER EXPRESS IMPLIED OR STATUTORY INCLUDING BUT NOT LIMITED
* TO IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT
* IN ANY CIRCUMSTANCES BE LIABLE FOR SPECIAL INCIDENTAL OR
* CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER.
*
* This is a simple loopback demo.
*
* Author Date Comment
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Ross Fosler 07/02/03 ...
*
*****************************************************************************/
#include “P18F458.H“ // Hardware specific header
#include “dnet.def“ // Global definitions
#include “typedefs.h“ // Global type definitions
#include “services.h“ // Current list of known service codes
#include “errors.h“ // Current list of known error codes
#include “class.h“ // Current list of known class codes
#include “route.h“ // Public functions variables and more from the router object
#include “conn.h“ // Functions defined by the connection object
/*********************************************************************
* Function: void AppClass1Process(void)
*
* PreCondition:
*
* Input:
*
* Output:
*
* Side Effects:
*
* Overview: I/O Processing for the object
*
* Note: None
********************************************************************/
void AppClass1Process(void)
{
// Process any object specific application firmware
// Check for any I/O data that may need processing.
// In this case I check for the availability of both read and write buffers
if (mConnReadRdy(2) && mConnWriteRdy(2))
{
// This simple function writes the
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1147 2002-07-28 22:09 18f458.lkr
文件 7198 2003-09-19 14:28 App.c
文件 3020 2003-09-19 14:29 app.h
文件 24810 2003-09-18 09:08 CAN.C
文件 16681 2003-09-18 09:11 CAN.H
文件 3616 2003-09-19 09:48 class.h
文件 106 2003-05-04 10:00 clean.bat
文件 26390 2003-09-19 14:08 conn.c
文件 19052 2003-09-19 14:30 conn.h
文件 27245 2003-09-19 14:13 conn1.c
文件 6668 2003-09-19 14:31 conn1.h
文件 18480 2003-09-19 14:16 conn2.c
文件 7587 2003-09-19 14:31 conn2.h
文件 16600 2003-09-19 14:16 conn3.c
文件 7725 2003-09-19 14:31 conn3.h
文件 18969 2003-09-19 14:17 conn4.c
文件 7771 2003-09-19 14:32 conn4.h
文件 18635 2003-09-19 14:17 conn5.c
文件 7761 2003-09-19 14:32 conn5.h
文件 7889 2003-09-19 14:03 conn6.c
文件 5426 2003-09-19 14:32 conn6.h
文件 8381 2003-09-19 14:15 conn7.c
文件 5886 2003-09-19 14:33 conn7.h
文件 1890 2003-09-19 14:35 DeviceNet.mcp
文件 41472 2003-09-19 14:36 DeviceNet.mcw
文件 5010 2003-06-09 08:21 DeviceNet.pjt
文件 398 2003-06-09 08:21 DeviceNet.psp
文件 6074 2003-06-09 08:21 DeviceNet.sbl
文件 24502 2003-09-19 09:14 dnet.c
文件 3013 2003-09-16 08:05 dnet.def
文件 3013 2003-09-18 09:04 dnet.def.ex
............此处省略31个文件信息
评论
共有 条评论