mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 20:18:22 +08:00
update docs
This commit is contained in:
parent
54773a5a19
commit
8d5cb8f550
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* File: tk_iostream_serial.h
|
||||
* File: iostream_serial.c
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on serial
|
||||
* Brief: input stream base on serial port
|
||||
*
|
||||
* Copyright (c) 2019 - 2019 Guangzhou ZHIYUAN Electronics Co.,Ltd.
|
||||
*
|
||||
@ -31,19 +31,19 @@ static ret_t tk_iostream_serial_get_prop(object_t* obj, const char* name, value_
|
||||
value_set_int(v, (int32_t)(iostream_serial->fd));
|
||||
return RET_OK;
|
||||
} else if (tk_str_eq(name, TK_IOSTREAM_SERIAL_PROP_PARITY)) {
|
||||
value_set_int(v, iostream_serial->parity);
|
||||
value_set_uint8(v, iostream_serial->parity);
|
||||
return RET_OK;
|
||||
} else if (tk_str_eq(name, TK_IOSTREAM_SERIAL_PROP_STOPBITS)) {
|
||||
value_set_int(v, iostream_serial->stopbits);
|
||||
value_set_uint8(v, iostream_serial->stopbits);
|
||||
return RET_OK;
|
||||
} else if (tk_str_eq(name, TK_IOSTREAM_SERIAL_PROP_BYTESIZE)) {
|
||||
value_set_int(v, iostream_serial->bytesize);
|
||||
value_set_uint8(v, iostream_serial->bytesize);
|
||||
return RET_OK;
|
||||
} else if (tk_str_eq(name, TK_IOSTREAM_SERIAL_PROP_BAUDRATE)) {
|
||||
value_set_int(v, iostream_serial->baudrate);
|
||||
return RET_OK;
|
||||
} else if (tk_str_eq(name, TK_IOSTREAM_SERIAL_PROP_FLOWCONTROL)) {
|
||||
value_set_int(v, iostream_serial->flowcontrol);
|
||||
value_set_uint8(v, iostream_serial->flowcontrol);
|
||||
return RET_OK;
|
||||
} else if (tk_str_eq(name, TK_STREAM_PROP_IS_OK)) {
|
||||
bool_t is_ok1 =
|
||||
@ -136,7 +136,7 @@ tk_iostream_t* tk_iostream_serial_create(const char* port) {
|
||||
return_value_if_fail(port != NULL, NULL);
|
||||
|
||||
fd = serial_open(port);
|
||||
return_value_if_fail(fd >= 0, NULL);
|
||||
return_value_if_fail(fd > 0, NULL);
|
||||
|
||||
obj = object_create(&s_tk_iostream_serial_vtable);
|
||||
iostream_serial = TK_IOSTREAM_SERIAL(obj);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_iostream_serial.h
|
||||
* File: iostream_serial.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on serial port
|
||||
*
|
||||
@ -35,7 +35,7 @@ typedef struct _tk_iostream_serial_t tk_iostream_serial_t;
|
||||
* @class tk_iostream_serial_t
|
||||
* @parent tk_iostream_t
|
||||
*
|
||||
* input stream base on fd
|
||||
* input stream base on serial port
|
||||
*
|
||||
*/
|
||||
struct _tk_iostream_serial_t {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_iostream_socket.h
|
||||
* File: iostream_socket.c
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on socket
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_iostream_socket.h
|
||||
* File: iostream_socket.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on socket
|
||||
*
|
||||
@ -50,7 +50,7 @@ struct _tk_iostream_socket_t {
|
||||
*
|
||||
* 创建iostream对象。
|
||||
*
|
||||
* @param {int} sock 文件名。
|
||||
* @param {int} sock socket。
|
||||
*
|
||||
* @return {tk_iostream_t*} 返回iostream对象。
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_istream_file.h
|
||||
* File: istream_file.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on file
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_istream_file.h
|
||||
* File: istream_file.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on file
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_istream_mem.h
|
||||
* File: istream_mem.c
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on memory
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_istream_mem.h
|
||||
* File: istream_mem.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on memory
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_istream_serial.h
|
||||
* File: istream_serial.c
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on serial
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_istream_serial.h
|
||||
* File: istream_serial.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on serial port
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_istream_socket.h
|
||||
* File: istream_socket.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on socket
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_istream_socket.h
|
||||
* File: istream_socket.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on socket
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_ostream_file.h
|
||||
* File: ostream_file.c
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on file
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_ostream_file.h
|
||||
* File: ostream_file.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on file
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_ostream_mem.h
|
||||
* File: ostream_mem.c
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on memory
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_ostream_mem.h
|
||||
* File: ostream_mem.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on memory
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_ostream_serial.h
|
||||
* File: ostream_serial.c
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on serial
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_ostream_serial.h
|
||||
* File: ostream_serial.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on serial
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_ostream_socket.h
|
||||
* File: ostream_socket.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on socket
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* File: tk_ostream_socket.h
|
||||
* File: ostream_socket.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: input stream base on socket
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user