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

📄 ext_serial_port.h

📁 RT9S12 target document
💻 H
字号:
/*
 * Copyright 1994-2003 The MathWorks, Inc.
 *
 * File: ext_serial_port.h     $Revision: 1.1.6.3 $
 *
 * Abstract:
 *  Function prototypes for the External Mode Serial Port object.
 */

#ifndef __EXT_SERIAL_PORT__
#define __EXT_SERIAL_PORT__

typedef struct ExtSerialPort_tag
{
    bool isLittleEndian; /* Endianess of target. */
    bool fConnected;     /* Connected or not.    */
} ExtSerialPort;

extern ExtSerialPort *ExtSerialPortCreate       (void);
extern void          ExtSerialPortDestroy       (ExtSerialPort *portDev);
extern boolean_T     ExtSerialPortConnect       (ExtSerialPort *portDev,
                                                 uint16_T portNum,
                                                 uint32_T baudRate);
extern boolean_T     ExtSerialPortDisconnect    (ExtSerialPort *portDev);
extern boolean_T     ExtSerialPortSetData       (ExtSerialPort *portDev,
                                                 char *data,
                                                 uint32_T size,
                                                 uint32_T *bytesWritten);
extern boolean_T     ExtSerialPortDataPending   (ExtSerialPort *portDev,
                                                 int32_T *bytesPending);     /* changed to 'int32_T'   fw-07-07 */
extern boolean_T     ExtSerialPortGetRawChar    (ExtSerialPort *portDev,
                                                 char *c,
                                                 uint32_T *bytesRead);

#if DEBUG_MSG_LVL > 0
extern void          ExtSerialPortPeekRB        (uint16_T nBytesToDisplay);
#endif


#endif /* __EXT_SERIAL_PORT__ */

/* [EOF] ext_serial_port.h */

⌨️ 快捷键说明

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