drv_sio.h

来自「最新版IAR FOR ARM(EWARM)5.11中的代码例子」· C头文件 代码 · 共 35 行

H
35
字号
/**********************************************************************************/
/*                                                                                */
/*    Copyright (C) 2006 Oki Electric Industry Co., LTD.                          */
/*                                                                                */
/*    System Name    :  uPLAT7D series                                            */
/*    Module Name    :  uPLAT7D system SIO driver definition include file         */
/*    File   Name    :  drv_sio.h                                                 */
/*    Revision       :  01.00                                                     */
/*    Date           :  2006/1/21 initial version                                 */
/*                                                                                */
/**********************************************************************************/
#ifndef DRV_SIO_H
#define DRV_SIO_H

/***********************************/
/*    type definition              */
/***********************************/
#define DRV_SIO_OK              (1)     /* SIO No error */
#define DRV_SIO_OVR_ERROR       (-101)  /* SIO overrun error */
#define DRV_SIO_PRT_ERROR       (-102)  /* SIO parity error */
#define DRV_SIO_FRM_ERROR       (-103)  /* SIO framing error */
#define DRV_SIO_OVF_ERROR       (-104)  /* SIO overflow error */
#define DRV_SIO_OTR_ERROR       (-199)  /* SIO others error */

/***********************************/
/*     Functions prototype         */
/***********************************/
int16_t smpDrv_OpenSIO(struct uPLAT_SioParam *init_sio);
int16_t smpDrv_CloseSIO(void);
int16_t smpDrv_WriteSIO(int8_t *buff,  uint16_t size);
int16_t smpDrv_ReadSIO(int8_t *buff, uint16_t size);


#endif /* DRV_SIO_H */

⌨️ 快捷键说明

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