Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

otXmodem Class Reference
[Xmodem - File transfer protocol libraryXmodem - File transfer protocol library]

Class for Xmodem protocol.

#include <otXmodem.h>


Public Member Functions

 otXmodem ()
 Create the class.
void init (_putcharFun pc, _getcharFun gc)
 Init the class with two function pointer used for receive and transmit data.
int receive (U8 *dest, int destsz)
 Receive a block of data with Xmodem protocol.
int transmit (U8 *src, int srcsz)
 Transmit a block of data with Xmodem protocol.


Constructor & Destructor Documentation

otXmodem.otXmodem  ) 
 


Member Function Documentation

void otXmodem.init _putcharFun  pc,
_getcharFun  gc
 

Parameters:
pc Function pointer for a function used for transmit data
gc Function pointer for a function used for receive data

int otXmodem.receive U8 dest,
int  destsz
 

Parameters:
dest Pointer to a buffer where received data is stored
destsz Number of data bytes to be received

int otXmodem.transmit U8 src,
int  srcsz
 

Parameters:
src Pointer to a buffer of data to be sent
srcsz Number of data bytes to be sent


The documentation for this class was generated from the following file: footer
otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0