27#ifndef JUNO_ASYNC_IO_API_H
28#define JUNO_ASYNC_IO_API_H
52 JUNO_STATUS_T (*
ReadUntil)(JUNO_ASYNC_IO_T *ptIo,
char *pcBuff,
size_t zBuffSize,
const char *pcStopChars,
size_t zSizeStopChars);
#define JUNO_MODULE_BASE(name, API, members)
Definition module.h:81
#define JUNO_MODULE_EMPTY
Definition module.h:50
#define JUNO_MODULE_BASE_DECLARE(name)
Definition module.h:31
#define JUNO_MODULE_DECLARE(name)
Definition module.h:26
enum JUNO_STATUS_TAG JUNO_STATUS_T
Definition async_io_api.h:46
JUNO_STATUS_T(* Read)(JUNO_ASYNC_IO_T *ptIo, char *pcBuff, size_t zBuffSize)
Read the specified number of bytes from the IO.
Definition async_io_api.h:48
JUNO_STATUS_T(* TryRead)(JUNO_ASYNC_IO_T *ptIo, char *pcBuff, size_t zBuffSize, JUNO_TIME_MICROS_T iTimeoutUs)
Try to read from the IO until timeout expires.
Definition async_io_api.h:50
JUNO_STATUS_T(* ReadUntil)(JUNO_ASYNC_IO_T *ptIo, char *pcBuff, size_t zBuffSize, const char *pcStopChars, size_t zSizeStopChars)
Read from the IO until the set of characters is recieved.
Definition async_io_api.h:52
JUNO_STATUS_T(* Write)(JUNO_ASYNC_IO_T *ptIo, const void *pvBuff, size_t zBuffSize)
Write the specified number of bytes to the IO.
Definition async_io_api.h:56
JUNO_STATUS_T(* Poll)(JUNO_ASYNC_IO_T *ptIo, JUNO_TIME_MICROS_T iTimeoutUs, bool *pbHasData)
Poll the IO.
Definition async_io_api.h:60
JUNO_STATUS_T(* TryReadUntil)(JUNO_ASYNC_IO_T *ptIo, char *pcBuff, size_t zBuffSize, const char *pcStopChars, size_t zSizeStopChars, JUNO_TIME_MICROS_T iTimeoutUs)
Try to read from the IO until the set of characters is recieved.
Definition async_io_api.h:54
JUNO_STATUS_T(* TryWrite)(JUNO_ASYNC_IO_T *ptIo, const void *pvBuff, size_t zBuffSize, JUNO_TIME_MICROS_T iTimeoutUs)
Try to write the specified number of bytes to the IO.
Definition async_io_api.h:58
uint64_t JUNO_TIME_MICROS_T
Definition time_api.h:39