📄 spi.h
字号:
// spi.h/*********************************************************************** * * Author: Greg Hunter * Company: UTS * Filenames: spi.h, spi.c * Date: 2007/9/6 * File Version: 0.01 * Other Files Required: * Tools Used: Micro-IDE -> 2.16m * SDCC C Compiler -> 2.5 * * Devices Supported: * nRF24E1 * *********************************************************************** * * Description: * Routines to configure and run the spi interface * **********************************************************************/#ifndef Spi_h#define Spi_h// C API for spi.cvoid SpiRadio(void); // Initialising routine to connect spi to radiounsigned char SpiReadWrite(unsigned char b); // send and receive byte on spi busvoid SpiReadBuf(unsigned char* buf, unsigned char n); // read n characters into buffer starting at *bufvoid SpiWriteBuf(unsigned char* buf, unsigned char n); // write n characters from buffer starting at *bufvoid SpiReadWriteBuf(unsigned char* TXbuf, unsigned char* RXbuf, unsigned char n); //read and write together#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -