![]() |
BSB Developer Docs
|
I/O interface used by the Kermit sender to read the source file and transmit data over the communication channel. More...
#include <fkermit.h>
Data Fields | |
| int32_t(* | src_file_read )(void *context, uint8_t *buffer, size_t length) |
Read up to length bytes of source data into buffer. | |
| int32_t(* | comms_send )(void *context, const uint8_t *buffer, size_t length) |
Send length bytes over the communication channel. | |
I/O interface used by the Kermit sender to read the source file and transmit data over the communication channel.
Every callback receives the user-provided context unchanged. The pointed-to KermitIo instance must outlive any session created from it.
| int32_t(* KermitIo::comms_send) (void *context, const uint8_t *buffer, size_t length) |
Send length bytes over the communication channel.
| [in] | context | User-provided context. |
| [in] | buffer | Data to send. |
| [in] | length | Number of bytes to send. |
| int32_t(* KermitIo::src_file_read) (void *context, uint8_t *buffer, size_t length) |
Read up to length bytes of source data into buffer.
| [in] | context | User-provided context. |
| [out] | buffer | Destination buffer. |
| [in] | length | Number of bytes to read. |