Skip to content

tk_ostream_shdlc_t

概述

reliable ostream base on simple HDLC

函数

函数名称说明
tk_ostream_shdlc_create创建ostream对象。

属性

属性名称类型说明
compress_thresholduint32_t激活压缩的阈值。
retry_timesuint8_t失败重传次数。
timeoutuint32_t读写超时时间(毫秒)

tk_ostream_shdlc_create 函数

  • 函数功能:

创建ostream对象。

只能由iostream_shdlc调用。

  • 函数原型:
tk_ostream_t* tk_ostream_shdlc_create (tk_iostream_shdlc_t* iostream);
  • 参数说明:
参数类型说明
返回值tk_ostream_t*返回ostream对象。
iostreamtk_iostream_shdlc_t*iostream对象。

compress_threshold 属性

激活压缩的阈值。

  • 类型:uint32_t

retry_times 属性

失败重传次数。

  • 类型:uint8_t

timeout 属性

读写超时时间(毫秒)

  • 类型:uint32_t