sio_drv.h

来自「展讯SC6600D例程」· C头文件 代码 · 共 93 行

H
93
字号
/******************************************************************************
 ** File Name:      sio_drv.h                                                 *
 ** Author:         Xueliang.Wang                                             *
 ** DATE:           11/10/2005                                                *
 ** Copyright:      2005 Spreatrum, Incoporated. All Rights Reserved.         *
 ** Description:                                                              *
 ******************************************************************************

 ******************************************************************************
 **                        Edit History                                       *
 ** ------------------------------------------------------------------------- *
 ** DATE            NAME            DESCRIPTION                               *
 ** 11/10/2005      Xueliang.Wang   Create.                                   *
 ******************************************************************************/
#ifndef _SIO_DRV_H
#define _SIO_DRV_H

/**---------------------------------------------------------------------------*
 **                         Dependencies                                      *
 **---------------------------------------------------------------------------*/
#include "sci_types.h"

/**---------------------------------------------------------------------------*
 **                         Compiler Flag                                     *
 **---------------------------------------------------------------------------*/
#ifdef __cplusplus
    extern   "C"
    {
#endif

/**---------------------------------------------------------------------------*
 **                         Constant Variables                                *
 **---------------------------------------------------------------------------*/
typedef enum
{
    COM0,
    COM1
}UART_PORT_E;

/**---------------------------------------------------------------------------*
 **                         Function Prototypes                               *
 **---------------------------------------------------------------------------*/
/*****************************************************************************/
//  Description:    The function initialize sio.
//	Global resource dependence: 
//  Author:         Xueliang.Wang
//	Note:
/*****************************************************************************/
PUBLIC BOOLEAN SIO_Init( // 
    UART_PORT_E com_id  // 
    );

/*****************************************************************************/
//  Description:    The function get a char from sio.
//	Global resource dependence: 
//  Author:         Xueliang.Wang
//	Note:
/*****************************************************************************/
PUBLIC char SIO_GetChar(    //
    UART_PORT_E com_id      //
    );

/*****************************************************************************/
//  Description:    The function output a char to sio.
//	Global resource dependence: 
//  Author:         Xueliang.Wang
//	Note:
/*****************************************************************************/
PUBLIC void SIO_PutChar(    // 
    UART_PORT_E com_id,     // 
    char c                  // 
    );

/*****************************************************************************/
//  Description:    The function output a string to sio.
//	Global resource dependence: 
//  Author:         Xueliang.Wang
//	Note:
/*****************************************************************************/
PUBLIC void SIO_PutChars(     // 
    UART_PORT_E com_id,     // 
    const char * str_buf,   // 
    uint32      str_len     // 
    );

/**---------------------------------------------------------------------------*
 **                         Compiler Flag                                     *
 **---------------------------------------------------------------------------*/
#ifdef __cplusplus
    }
#endif

#endif  // _SIO_DRV_H

⌨️ 快捷键说明

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