资源简介
这是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 产品密钥
- 下一篇:计算机图形学课程设计
相关资源
- G.729的编解码C源码(使用Intel的IPP包)
- 飞思卡尔智能车竞赛源码
- SSM增删改查学习项目源码
- ios实现打地鼠的简单版游戏源码加注
- μCOS-II中OS_TASK.C源码中文注释版
- flash画板源码
- Authorware拼图游戏源码
- 安卓计算器源码
- 职工工作量统计实验报告含源码
- 小程序获取openid源代码
-
RDif
ramework.NET快速开发框架源码 - 淘淘商城项目有源码
- udt源码 udp可靠性传输
- 2018年最新的微信小程序-闹钟应用程序
- 瑞士军刀NC源码
- 非常好用的CAD批量读取坐标
- ZigBee Sensor Monitor 源码
- 78K0-Kd2系列单片机demo源码
- coco2dx游戏源码 50多种
- nbody的mpi&openmp实现源码
- 基于51单片机的RFID智能门禁系统源码
- 基于51单片机的电子密码锁源码+电路
- 最新版本linux libc库实现源码
- 1602电子时钟万年历isis仿真文件,程序
- 计算器源码
- 遥感图像NDVI植被指数源码vc
- 随机森林源码
- CnComm 1.51(串口类 串口库 完全源码
- QT 串口源码 串口 QT 串口助手代码
- 尚硅谷SpringBoot视频 ,百度网盘分享链
评论
共有 条评论