2019-10-16 09:02:32 +08:00
|
|
|
|
## tk\_istream\_shdlc\_t
|
|
|
|
|
### 概述
|
|
|
|
|
![image](images/tk_istream_shdlc_t_0.png)
|
|
|
|
|
|
2019-11-15 11:33:43 +08:00
|
|
|
|
reliable istream base on simple HDLC
|
2019-10-16 09:02:32 +08:00
|
|
|
|
----------------------------------
|
|
|
|
|
### 函数
|
|
|
|
|
<p id="tk_istream_shdlc_t_methods">
|
|
|
|
|
|
|
|
|
|
| 函数名称 | 说明 |
|
|
|
|
|
| -------- | ------------ |
|
2019-12-14 13:25:56 +08:00
|
|
|
|
| <a href="#tk_istream_shdlc_t_tk_istream_shdlc_create">tk\_istream\_shdlc\_create</a> | 创建istream对象。 |
|
2019-10-16 09:02:32 +08:00
|
|
|
|
### 属性
|
|
|
|
|
<p id="tk_istream_shdlc_t_properties">
|
|
|
|
|
|
|
|
|
|
| 属性名称 | 类型 | 说明 |
|
|
|
|
|
| -------- | ----- | ------------ |
|
2023-06-29 10:44:29 +08:00
|
|
|
|
| <a href="#tk_istream_shdlc_t_retry_times">retry\_times</a> | uint8\_t | 失败重传次数。 |
|
2023-12-26 20:05:44 +08:00
|
|
|
|
| <a href="#tk_istream_shdlc_t_timeout">timeout</a> | uint32\_t | 读写超时时间(毫秒) |
|
2019-10-16 09:02:32 +08:00
|
|
|
|
#### tk\_istream\_shdlc\_create 函数
|
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
|
|
* 函数功能:
|
|
|
|
|
|
2019-12-14 13:25:56 +08:00
|
|
|
|
> <p id="tk_istream_shdlc_t_tk_istream_shdlc_create">创建istream对象。
|
|
|
|
|
|
|
|
|
|
> 只能由iostream_shdlc调用。
|
2019-10-16 09:02:32 +08:00
|
|
|
|
|
|
|
|
|
* 函数原型:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
tk_istream_t* tk_istream_shdlc_create (tk_iostream_shdlc_t* iostream);
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
* 参数说明:
|
|
|
|
|
|
|
|
|
|
| 参数 | 类型 | 说明 |
|
|
|
|
|
| -------- | ----- | --------- |
|
|
|
|
|
| 返回值 | tk\_istream\_t* | 返回istream对象。 |
|
|
|
|
|
| iostream | tk\_iostream\_shdlc\_t* | iostream对象。 |
|
2019-10-16 17:12:55 +08:00
|
|
|
|
#### retry\_times 属性
|
|
|
|
|
-----------------------
|
2019-11-15 11:33:43 +08:00
|
|
|
|
> <p id="tk_istream_shdlc_t_retry_times">失败重传次数。
|
2019-10-16 17:12:55 +08:00
|
|
|
|
|
2023-06-29 10:44:29 +08:00
|
|
|
|
* 类型:uint8\_t
|
2019-10-16 17:12:55 +08:00
|
|
|
|
|
2019-10-16 09:02:32 +08:00
|
|
|
|
#### timeout 属性
|
|
|
|
|
-----------------------
|
2023-12-26 20:05:44 +08:00
|
|
|
|
> <p id="tk_istream_shdlc_t_timeout">读写超时时间(毫秒)
|
2019-10-16 09:02:32 +08:00
|
|
|
|
|
|
|
|
|
* 类型:uint32\_t
|
|
|
|
|
|