drv_spi.h

来自「使用spi接口实现主」· C头文件 代码 · 共 32 行

H
32
字号
#ifndef _DRV_SPI
#define _DRV_SPI

#define TIMOD_T 0x0001
#define TIMOD_R 0x0000



void Drv_Config_slave_read();

void Drv_config_slave_write();

void Drv_Config_master_read();

void Drv_config_master_write() ;

void Drv_config_to_master() ;

void Drv_config_to_slave();

void Drv_SPI_enable() ;

void Drv_SPI_disable();

void Drv_SPI_write(char* ptr, int lenth) ;

int Drv_SPI_read(char* ptr ) ;

void Drv_clean_revbuf(void);

#endif //_DRV_SPI

⌨️ 快捷键说明

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