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

📄 bspspi.h

📁 这是单板上DPRAM的驱动程序
💻 H
字号:
#ifndef _SPI_H
#define _SPI_H

#define SDB_BSPSPI    50000

typedef struct{
    char *UncachedBuffer; 
    int ch;        /* SPI_RFIU1 ,SPI_RFIU2 */
    int MaxRecvBD; /* 1 */
    int MaxSendBD; /* 5 */
    int MaxBufLen; /* 8 */
    int BaudRate;  /* 40000 */
	int UcodeAdress; /* ucode adress  offset from Dpram*/
	int UseUcode; /*1->use ucode,0->no use*/
	}SpiCfgStruct;

void SpiInit(void *pDatabuf, SpiCfgStruct *pCfg);
int SpiRead(void *pDataBuf,void *pBuf, int MaxLen);
int SpiWrite(void *pDataBuf,void *pBuf, int MaxLen);         
int SpiCntrl(void *pDataBuf, int cmd, void *pParam, int maxlen);
char *SpiBspInit(int DEV, char *FreeMemPtr, SpiCfgStruct *cfg);

#endif /* _SPI_H */

⌨️ 快捷键说明

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