欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

drv_spi.h

最新版IAR FOR ARM(EWARM)5.11中的代码例子
H
字号:

/**************************************************************************/
/*                                                                        */
/*     Copyright (C) 2006 Oki Electric Industry Co., LTD.                 */
/*                                                                        */
/*     System Name  :  ML675050 series                                    */
/*     Module Name  :  ML675050 spi driver program                        */
/*     File   Name  :  drv_spi.h                                          */
/*     Revision     :  01.00                                              */
/*     Date         :  2006/1/13  initial version                         */
/*                                                                        */
/**************************************************************************/

#ifndef DRV_SPI_H
#define DRV_SPI_H

/***********************************/
/*    type definition              */
/***********************************/

#define DRV_SPI_TRANS_ERROR      (-101)   /* SPI transmit error */
#define DRV_DMA_SEND_ERROR       (-102)   /* DMA send data error */
#define DRV_DMA_RECEIVE_ERROR    (-103)   /* DMA receive data error */
#define DRV_RECEIVE_DATA_ERROR   (-104)   /* receive data error */
#define DRV_SPI_OTR_ERROR        (-199)   /* SPI others error */

/******************************/
/*     Functions define       */
/******************************/
extern  int16_t smpDrv_OpenSpi(struct ML675050_SpiParam *pInit);
extern  int16_t smpDrv_CloseSpi(void);
extern  int16_t smpDrv_IoctlSpi(uint16_t cmd, uint32_t arg);
extern  void DrvSPI_spi_handler(uint16_t state);

#endif  /* end of DRV_SPI_H */

⌨️ 快捷键说明

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