spi1.h

来自「nRF24L01开发指导」· C头文件 代码 · 共 33 行

H
33
字号
/*****************************************************************************
*
* File: spi1.h
* 
* Copyright S. Brennen Ball, 2006-2007
* 
* The author provides no guarantees, warantees, or promises, implied or
*	otherwise.  By using this software you agree to indemnify the author
* 	of any damages incurred by using it.
* 
*****************************************************************************/

#ifndef _SPI_H_
#define _SPI_H_

#include <stddef.h>

#ifndef bool
#define bool unsigned char
#endif
#ifndef false
#define false 0
#endif
#ifndef true
#define true !false
#endif

void spi1_open();
int spi1_read();
unsigned char spi1_send_read_byte(unsigned char byte);

#endif //_SPI_H_

⌨️ 快捷键说明

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