/** * \file * * \brief X-Modem serial transmission protocol. * * \author Bernie Innocenti * \author Francesco Sacchi * * $WIZ$ module_name = "xmodem" * $WIZ$ module_depends = "kfile", "crc16" * $WIZ$ module_configuration = "bertos/cfg/cfg_xmodem.h" */ #ifndef NET_XMODEM_H #define NET_XMODEM_H #include #include /** * Called to know if we want to abort data tranfer. * Redefine to whatever you need. * \{ */ #ifndef XMODEM_CHECK_ABORT #define XMODEM_CHECK_ABORT (false) #endif /*\}*/ bool xmodem_recv(KFile *ch, KFile *fd); bool xmodem_send(KFile *ch, KFile *fd); #endif /* NET_XMODEM_H */