cli_serial.h

来自「一个简单的小型操作系统」· C头文件 代码 · 共 77 行

H
77
字号

/*****************************************************************************
 *
 * Module       : serial.h
 * Description  : high level serial routines
 * OS           : SLOS
 * Platform     : generic
 * History      :
 *
 * 2nd November 2001	
 * - created 
 *		
 *****************************************************************************/

/* -- openHost ----------------------------------------------------------------
 *
 * Description   : opens the communication port for the host
 *                 command line.
 *
 * Parameters    : UINT COM
 * Return        : BOOLean 0 
 * Notes         :
 *
 */

BOOL openHost (UINT COM); 

/* -- writeCharToHost ---------------------------------------------------------
 *
 * Description  : write a character to host port
 *
 * Parameter    : char c - character to be sent to host port
 * Return       : none...
 * Notes	:
 *
 */

void writeCharToHost (char c);

/* -- printToHost -------------------------------------------------------------
 *
 * Description  : print a string to the host port
 *
 * Parameter    : char *s - string to be printed
 * Return       : none...
 * Notes	:
 *
 */

void printToHost (char *s);

/* -- readCharFromHost --------------------------------------------------------
 *
 * Description  : read a character from host port
 *
 * Parameter    : none...
 * Return       : char c - character to be sent to host port
 * Notes	:
 *
 */

char readCharFromHost (void);

/* -- closeHost ---------------------------------------------------------------
 *
 * Description  : closes the host port but this code should never be 
 *                executed.
 *
 * Parameter    : none...
 * Return       : char c - character to be sent to host port
 * Notes	:
 *
 */

int closeHost (void);

⌨️ 快捷键说明

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