spi.h

来自「nRF24E1多发单收」· C头文件 代码 · 共 36 行

H
36
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?