资源简介
这是Microchip公司实现的SAE J1939协议栈代码,可供大家参考。

代码片段和文件信息
/*********************************************************************
*
* J1939 Main Source Code
*
*********************************************************************
* FileName: J1939.c
* Dependencies: See INCLUDES section below
* Processor: PIC18xx8x and PIC18xx8
* Compiler: C18 X.X
* Company: Microchip Technology Inc.
*
* Software License Agreement
*
* The software supplied herewith by Microchip Technology Incorporated
* (the 揅ompany? for its PICmicro?Microcontroller is intended and
* supplied to you the Company抯 customer for use solely and
* exclusively on Microchip PICmicro Microcontroller products. 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 揂S 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.
*
*
* Library routines for the J1939 C Library for PIC18
* devices with ECAN module. Please refer to the J1939 C Library User Guide
* for information on configuring and using this library.
*
* This file requires the following header file:
*
* p18cxxx.h (MPLAB C18)
* j1939.h
*
* Version Date Description
* ----------------------------------------------------------------------
* v01.00.00 2004/06/04 Initial Release
*
* Copyright 2004 Kimberly Otten Software Consulting
*
* Author Date Comment
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Kim Otten 6/04/04 Original
* Caio Gubel 6/11/04 Formatted
********************************************************************/
#ifndef __J1939_SOURCE
#define __J1939_SOURCE
#endif
#include
#include “J1939.H“
#define J1939_TRUE 1
#define J1939_FALSE 0
// Internal definitions
#define ADDRESS_CLAIM_TX 1
#define ADDRESS_CLAIM_RX 2
#define ECAN_CONFIG_MODE 0x80
#define ECAN_ERROR_INT_ENABLE 0xA0
#define ECAN_NORMAL_MODE 0x00
#define ECAN_RX_INT_ENABLE_FIFO 0x02
#define ECAN_RX_INT_ENABLE_LEGACY 0x03
#define ECAN_SELECT_RX_BUFFER 0x10
#define ECAN_SET_LEGACY_MODE 0x00
#define ECAN_SET_FIFO_MODE 0xA0
#define ECAN_TX_INT_ENABLE_LEGACY 0x0C
typedef enum _BOOL { FALSE = 0 TRUE } BOOL;
// Since we‘ll be mapping the various buffers into the access bank we‘ll
// create definitions for the ke
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2004-06-11 09:58 Examples\
目录 0 2004-06-01 20:30 Examples\Example1a\
文件 708 2004-06-01 19:46 Examples\Example1a\Example1a.mcp
文件 23552 2004-06-01 20:16 Examples\Example1a\Example1a.mcw
文件 35032 2004-06-11 10:38 Examples\Example1a\J1939.c
文件 1881 2004-06-01 19:44 Examples\Example1a\j1939.def
文件 13359 2004-06-11 10:46 Examples\Example1a\J1939.H
文件 1980 2004-06-01 20:16 Examples\Example1a\main.c
目录 0 2004-06-01 20:31 Examples\Example1b\
文件 798 2004-06-01 19:53 Examples\Example1b\Example1b.mcp
文件 23552 2004-06-01 20:16 Examples\Example1b\Example1b.mcw
文件 35032 2004-06-11 10:38 Examples\Example1b\J1939.c
文件 1881 2004-06-01 19:50 Examples\Example1b\j1939.def
文件 13359 2004-06-11 10:46 Examples\Example1b\J1939.H
文件 1980 2004-06-01 20:15 Examples\Example1b\main.c
目录 0 2004-06-01 20:31 Examples\Example2a\
文件 708 2004-06-01 19:56 Examples\Example2a\Example2a.mcp
文件 23552 2004-06-01 20:15 Examples\Example2a\Example2a.mcw
文件 35032 2004-06-11 10:38 Examples\Example2a\J1939.C
文件 1882 2004-06-01 19:54 Examples\Example2a\j1939.def
文件 13359 2004-06-11 10:46 Examples\Example2a\J1939.H
文件 2658 2004-06-01 20:15 Examples\Example2a\main.c
目录 0 2004-06-01 20:31 Examples\Example2b\
文件 707 2004-06-01 19:59 Examples\Example2b\Example2b.mcp
文件 23552 2004-06-01 20:15 Examples\Example2b\Example2b.mcw
文件 35032 2004-06-11 10:38 Examples\Example2b\J1939.C
文件 1882 2004-06-01 19:57 Examples\Example2b\j1939.def
文件 13359 2004-06-11 10:46 Examples\Example2b\J1939.H
文件 2658 2004-06-01 20:14 Examples\Example2b\main.c
目录 0 2004-06-01 20:31 Examples\Example3a\
文件 707 2004-06-01 20:02 Examples\Example3a\Example3a.mcp
............此处省略41个文件信息
- 上一篇:VISIO 2016 产品密钥
- 下一篇:计算机图形学课程设计
相关资源
- 我的世界源码(易语言版)
- labview编程软件滤波器以及编写程序设
- 我的界面(visual foxpro)源码
- 易语言:一键cf基址源码
- The Secret Path 3D 3D魔方迷宫[源码][scra
- scratch垃圾分类源码(最终版本).sb
- 由浅入深,蓝牙4.0/BLE协议栈开发攻略
- 安卓QQ6.71协议源码易语言,qq协议源码
- 编译原理实验工具及参考源码(lex&
- E盾偷后台工具源码
- UNIX/LINUX编程实践教程的源码
- 十以内加减法练习 powerbuilder源码
- 农场开发项目
- OCR源码
- PLC上位机编程软件
- 用foobar2000听google音乐[更新一下]
- 学生信息管理系统源码
- 用VC 编写的仿QQ聊天室程序源代码
- 毕业论文之温度传感器DS18B20(源码
- 可自定义导航网站源码
- 栅栏填充算法源码(VC)
- msp430F149操作红外接收模块源码
- [免费]图像识别c 源码
- 周易排盘源码
- RSA算法源码
- 一个人脸识别程序源码
- 编译原理课程设计:词法语法编译器
- 透明加密源码及说明
- 电视直播源码
- 远程桌面(带C 源码)
评论
共有 条评论