diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-07-13 13:19:15 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-07-13 13:19:15 -0600 |
commit | 8c2f7661b762fb378415e2df4b2634910acd3eb4 (patch) | |
tree | 92510b249f88031efd0bf40bfaf06a76e45adab7 /apps/system/zmodem/zm.h | |
parent | 92c70c86d8d7c023e16c87a1bd39cc0d7981d017 (diff) | |
download | px4-nuttx-8c2f7661b762fb378415e2df4b2634910acd3eb4.tar.gz px4-nuttx-8c2f7661b762fb378415e2df4b2634910acd3eb4.tar.bz2 px4-nuttx-8c2f7661b762fb378415e2df4b2634910acd3eb4.zip |
More Zmodem bugfixes and new files
Diffstat (limited to 'apps/system/zmodem/zm.h')
-rw-r--r-- | apps/system/zmodem/zm.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/apps/system/zmodem/zm.h b/apps/system/zmodem/zm.h index e0caf8837..bb849d21d 100644 --- a/apps/system/zmodem/zm.h +++ b/apps/system/zmodem/zm.h @@ -200,7 +200,7 @@ #define ZM_FLAG_APPEND (1 << 8) /* Append to the existing file */ #define ZM_FLAG_TIMEOUT (1 << 9) /* A timeout has been detected */ -/* zm_parse() success/error return code definitions: +/* The Zmodem parser success/error return code definitions: * * < 0 : Transfer terminated due to an error * = 0 : Transfer still in progress @@ -694,19 +694,17 @@ int zm_sendbinhdr(FAR struct zm_state_s *pzm, int type, FAR const uint8_t *buffer); /**************************************************************************** - * Name: zm_parse + * Name: zm_datapump * * Description: - * New data from the remote peer is available in pzm->rcvbuf. The number - * number of bytes of new data is given by rcvlen. - * - * This function will parse the data in the buffer and, based on the - * current state and the contents of the buffer, will drive the Zmodem - * state machine. + * Drive the Zmodem state machine by reading data from the remote peer and + * providing that data to the parser. This loop runs until a fatal error + * is detected or until the state machine reports that the transfer has + * completed successfully. * ****************************************************************************/ -int zm_parse(FAR struct zm_state_s *pzm, size_t rcvlen); +int zm_datapump(FAR struct zm_state_s *pzm); /**************************************************************************** * Name: zm_readstate |