blob: 7a0859452691d579f47cdba90fa5bc3559ff6dd6 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#ifndef __EXT_DEV_REGIST_H__
2#define __EXT_DEV_REGIST_H__
3
4#if (APP_OS_TYPE == APP_OS_LINUX)
5
6#include "ext_regist.h"
7#include "softap_api.h"
8
9typedef struct TAG_PCS_USB_INFO
10{
11 char cPrompt; // prompt after reciving data
12 int32_t iBaudrate; // baudrate
13 char cDatabit; // data bits, 5, 6, 7, 8
14 char cDebug; // debug mode, 0: none, 1: debug
15 char cEcho; // echo mode, 0: none, 1: echo
16 char cFctl; // flow control, 0: none, 1: hardware, 2: software
17 char cTty; // tty: 0, 1, 2, 3, 4, 5, 6, 7
18 char cParity; // parity 0: none, 1: odd, 2: even
19 char cStopbit; // stop bits, 1, 2
20 int32_t iReserved; // reserved, must be zero
21}T_PCS_USB_INFO, *PT_PCS_USB_INFO;
22
23typedef enum{
24 AUTO_MODE,
25 SET_MODE
26}USB_PORT_MODE;
27
28void vFnSetUsbInfo(int32_t iFdCom, const PT_PCS_USB_INFO ptPortInfo, USB_PORT_MODE usbPortMode);
29extern T_PCS_USB_INFO s_tUsbInfo;
30
31#endif
32
33#endif /*__EXT_DEV_REGIST_H__*/