aboutsummaryrefslogtreecommitdiff
path: root/nuttx/libc/misc/lib_kbddecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/libc/misc/lib_kbddecode.c')
-rw-r--r--nuttx/libc/misc/lib_kbddecode.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/nuttx/libc/misc/lib_kbddecode.c b/nuttx/libc/misc/lib_kbddecode.c
index 046d570f9..cb57b5215 100644
--- a/nuttx/libc/misc/lib_kbddecode.c
+++ b/nuttx/libc/misc/lib_kbddecode.c
@@ -89,7 +89,7 @@
*
****************************************************************************/
-static int kbd_reget(FAR struct kget_getstate_s *state, FAR uint8_t *pch)
+static int kbd_reget(FAR struct kbd_getstate_s *state, FAR uint8_t *pch)
{
/* Return the next character */
@@ -107,7 +107,7 @@ static int kbd_reget(FAR struct kget_getstate_s *state, FAR uint8_t *pch)
* Name: kbd_get
*
* Description:
- * Put one byte of data or special command from the driver provided input
+ * Get one byte of data or special command from the driver provided input
* buffer.
*
* Input Parameters:
@@ -120,15 +120,17 @@ static int kbd_reget(FAR struct kget_getstate_s *state, FAR uint8_t *pch)
* should be cleared the first time that kbd_get is called.
*
* Returned Value:
- * 1 - Indicates the successful receipt of a special, "out-of-band" command
+ * 1 - Indicates the successful receipt of a special, "out-of-band" command.
+ * The returned value in pch is a value from enum kbd_getstate_s.
* 0 - Indicates the successful receipt of normal, "in-band" ASCII data.
+ * The returned value in pch is a simple byte of text or control data.
* EOF - An error has getting the next character (reported by the stream).
* Normally indicates the end of file.
*
****************************************************************************/
int kbd_get(FAR struct lib_instream_s *stream,
- FAR struct kget_getstate_s *state, FAR uint8_t *pch)
+ FAR struct kbd_getstate_s *state, FAR uint8_t *pch)
{
int ch;