代码搜索:CAN Bus
找到约 10,000 项符合「CAN Bus」的源代码
代码结果 10,000
www.eeworm.com/read/229343/14344277
c can.c
//------------------------------------------------------------
//
// CAN总线通信测试程序
//
// 主控制芯片 : AT89C52,12MHZ晶振
// CAN控制芯片 : SJA1000,16MHZ晶振
//
//-------------------------------------
www.eeworm.com/read/229343/14344281
h can.h
#ifndef _CAN_H
#define _CAN_H
//Basic_mode寄存器定义
#define SJA_BaseAdr 0x7f00 //SJA1000基址
//sja内部寄存器
#define CONTROL_REG XBYTE[SJA_BaseAdr + 0x00] //控制寄存器
#define COMMAND_REG XB
www.eeworm.com/read/229328/14344599
c can.c
#include /* derivative information */
#include "can.h"
#include "io.h"
#include "pwm.h"
#include "sci.h"
#include "timer.h"
#include "event.h"
#pragma CODE_SEG DEFAULT
//
www.eeworm.com/read/229328/14344604
h can.h
/* Frame formats */
#define STANDARD_FORMAT 0
#define EXTENDED_FORMAT 1
/* Frame types */
#define DATA_FRAME 0
#define REMOTE_FRAME 1
void CAN_Init(void);
void CAN_Sen
www.eeworm.com/read/229195/14349550
pjt can.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectName="CAN"
ProjectDir="C:\ti\myprojects\DSP281x_examples\can\"
ProjectType=Executable
CPU
www.eeworm.com/read/229195/14349566
paf can.paf
www.eeworm.com/read/229195/14349600
wks can.wks
www.eeworm.com/read/228743/14364655
c can.c
#include "f2407_c.h" //引用头部文件
int CAN_FLAG; //定义标志寄存器
void system_init(); //声明在程序中需要用到是函数
void CANMBX_ISR();
void CAN_INIT();
void inlin
www.eeworm.com/read/127101/14379548
h can.h
#include
#include
#ifndef PACKED
#define PACKED __attribute__((packed))
#endif
#define CAN_MSG_LENGTH 8
struct canmsg_t {
short flags;
int cob;
unsigned long id