91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 174KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-10
  • 語言: 其他
  • 標簽: j1939??源碼??協議棧??

資源簡介

這是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個文件信息

評論

共有 條評論