2019-09-30 17:11:53 +08:00
|
|
|
## tk\_iostream\_serial\_t
|
|
|
|
### 概述
|
|
|
|
![image](images/tk_iostream_serial_t_0.png)
|
|
|
|
|
2019-11-15 11:33:43 +08:00
|
|
|
input stream base on serial port
|
2019-10-16 09:02:32 +08:00
|
|
|
|
2019-09-30 17:11:53 +08:00
|
|
|
----------------------------------
|
|
|
|
### 函数
|
|
|
|
<p id="tk_iostream_serial_t_methods">
|
|
|
|
|
|
|
|
| 函数名称 | 说明 |
|
|
|
|
| -------- | ------------ |
|
2019-11-15 11:33:43 +08:00
|
|
|
| <a href="#tk_iostream_serial_t_tk_iostream_serial_create">tk\_iostream\_serial\_create</a> | 创建iostream对象。 |
|
2019-09-30 17:11:53 +08:00
|
|
|
#### tk\_iostream\_serial\_create 函数
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
* 函数功能:
|
|
|
|
|
2019-11-15 11:33:43 +08:00
|
|
|
> <p id="tk_iostream_serial_t_tk_iostream_serial_create">创建iostream对象。
|
2019-10-16 09:02:32 +08:00
|
|
|
|
2019-09-30 17:11:53 +08:00
|
|
|
|
|
|
|
* 函数原型:
|
|
|
|
|
|
|
|
```
|
|
|
|
tk_iostream_t* tk_iostream_serial_create (const char* port);
|
|
|
|
```
|
|
|
|
|
|
|
|
* 参数说明:
|
|
|
|
|
|
|
|
| 参数 | 类型 | 说明 |
|
|
|
|
| -------- | ----- | --------- |
|
|
|
|
| 返回值 | tk\_iostream\_t* | 返回iostream对象。 |
|
|
|
|
| port | const char* | port name。 |
|