⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arcan.h

📁 Arduino library for ArCan. www.arcan.es
💻 H
字号:
/**************************************************************************** * * Proyecto ArCan * * Copyright (C) 2008-2009 Ra鷏 Milla P閞ez raulmp(at)arcan.es *          http://www.arcan.es * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * ****************************************************************************/#ifndef ArCan_h#define ArCan_h#include "WConstants.h"         // include types & constants of Wiring core API#include "ArCan_def.h"// Descripcion del interfaz de la libreria CanBusclass tArCan{  // Parte p鷅lica  public:	typedef struct{          int id;                  struct {              byte rtr : 1;              byte length : 4;          }header;                  byte data[8];	}tCAN;		  	tArCan(void);	boolean init(void);	boolean check_message(void);	boolean check_free_buffer(void);	byte get_message(tCAN *msje);	byte send_message(tCAN *msje);	void print_message(tCAN *msje);	void mode_loopback(void);	void mode_normal(void);  // Parte privada  private:    byte spi_putc( byte data );	void write_register( byte direction, byte data );	byte read_register(byte direction);	void bit_modify(byte direction, byte mask, byte data);	byte read_status(byte type);};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -