资源简介
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-10-24 17:41 J1939协议栈\
文件 13758 2014-12-29 17:32 J1939协议栈\J1939.H
文件 43005 2014-12-29 15:30 J1939协议栈\J1939.c
目录 0 2017-10-24 17:41 J1939协议栈\中文J1939-pdf\
文件 972059 2017-04-19 18:27 J1939协议栈\中文J1939-pdf\can-sc15-2.1(物理层SAE1939-11).pdf
文件 272367 2017-04-19 18:27 J1939协议栈\中文J1939-pdf\can-sc15-2.2(物理层SAE1939-13).pdf
文件 364657 2017-04-19 18:26 J1939协议栈\中文J1939-pdf\can-sc15-2.3(物理层SAE1939-15).pdf
文件 590097 2017-04-19 18:24 J1939协议栈\中文J1939-pdf\can-sc15-2.4(数据链路层SAE1939-21).pdf
文件 1622660 2017-04-19 18:24 J1939协议栈\中文J1939-pdf\can-sc15-2.5(车辆应用层SAE1939-71).pdf
文件 761364 2017-04-19 18:24 J1939协议栈\中文J1939-pdf\can-sc15-2.6(应用层-诊断SAE1939-73).pdf
文件 438685 2017-04-19 18:24 J1939协议栈\中文J1939-pdf\can-sc15-2.7(网络管理SAE1939-81).pdf
文件 270448 2017-04-19 18:24 J1939协议栈\中文J1939-pdf\can-sc15-2编制说明.pdf
文件 1385984 2017-05-18 17:05 J1939协议栈\中文J1939-pdf\(网络层)J1939-31.pdf
评论
共有 条评论