update docs

This commit is contained in:
lixianjing 2019-09-12 16:44:07 +08:00
parent 54773a5a19
commit 8d5cb8f550
20 changed files with 28 additions and 28 deletions

View File

@ -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);

View File

@ -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 {

View File

@ -1,5 +1,5 @@
/**
* File: tk_iostream_socket.h
* File: iostream_socket.c
* Author: AWTK Develop Team
* Brief: input stream base on socket
*

View File

@ -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对象
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_istream_file.h
* File: istream_file.h
* Author: AWTK Develop Team
* Brief: input stream base on file
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_istream_file.h
* File: istream_file.h
* Author: AWTK Develop Team
* Brief: input stream base on file
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_istream_mem.h
* File: istream_mem.c
* Author: AWTK Develop Team
* Brief: input stream base on memory
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_istream_mem.h
* File: istream_mem.h
* Author: AWTK Develop Team
* Brief: input stream base on memory
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_istream_serial.h
* File: istream_serial.c
* Author: AWTK Develop Team
* Brief: input stream base on serial
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_istream_serial.h
* File: istream_serial.h
* Author: AWTK Develop Team
* Brief: input stream base on serial port
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_istream_socket.h
* File: istream_socket.h
* Author: AWTK Develop Team
* Brief: input stream base on socket
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_istream_socket.h
* File: istream_socket.h
* Author: AWTK Develop Team
* Brief: input stream base on socket
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_ostream_file.h
* File: ostream_file.c
* Author: AWTK Develop Team
* Brief: input stream base on file
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_ostream_file.h
* File: ostream_file.h
* Author: AWTK Develop Team
* Brief: input stream base on file
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_ostream_mem.h
* File: ostream_mem.c
* Author: AWTK Develop Team
* Brief: input stream base on memory
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_ostream_mem.h
* File: ostream_mem.h
* Author: AWTK Develop Team
* Brief: input stream base on memory
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_ostream_serial.h
* File: ostream_serial.c
* Author: AWTK Develop Team
* Brief: input stream base on serial
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_ostream_serial.h
* File: ostream_serial.h
* Author: AWTK Develop Team
* Brief: input stream base on serial
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_ostream_socket.h
* File: ostream_socket.h
* Author: AWTK Develop Team
* Brief: input stream base on socket
*

View File

@ -1,5 +1,5 @@
/**
* File: tk_ostream_socket.h
* File: ostream_socket.h
* Author: AWTK Develop Team
* Brief: input stream base on socket
*