LibJuno 0.23.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
JUNO_ASYNC_IO_API_TAG Struct Reference

#include <async_io_api.h>

Data Fields

JUNO_STATUS_T(* Read )(JUNO_ASYNC_IO_T *ptIo, char *pcBuff, size_t zBuffSize)
 Read the specified number of bytes from the IO.
 
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.
 
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.
 
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.
 
JUNO_STATUS_T(* Write )(JUNO_ASYNC_IO_T *ptIo, const void *pvBuff, size_t zBuffSize)
 Write the specified number of bytes to the IO.
 
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.
 
JUNO_STATUS_T(* Poll )(JUNO_ASYNC_IO_T *ptIo, JUNO_TIME_MICROS_T iTimeoutUs, bool *pbHasData)
 Poll the IO.
 

Field Documentation

◆ Poll

JUNO_STATUS_T(* JUNO_ASYNC_IO_API_TAG::Poll) (JUNO_ASYNC_IO_T *ptIo, JUNO_TIME_MICROS_T iTimeoutUs, bool *pbHasData)

Poll the IO.

◆ Read

JUNO_STATUS_T(* JUNO_ASYNC_IO_API_TAG::Read) (JUNO_ASYNC_IO_T *ptIo, char *pcBuff, size_t zBuffSize)

Read the specified number of bytes from the IO.

◆ ReadUntil

JUNO_STATUS_T(* JUNO_ASYNC_IO_API_TAG::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.

◆ TryRead

JUNO_STATUS_T(* JUNO_ASYNC_IO_API_TAG::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.

◆ TryReadUntil

JUNO_STATUS_T(* JUNO_ASYNC_IO_API_TAG::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.

◆ TryWrite

JUNO_STATUS_T(* JUNO_ASYNC_IO_API_TAG::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.

◆ Write

JUNO_STATUS_T(* JUNO_ASYNC_IO_API_TAG::Write) (JUNO_ASYNC_IO_T *ptIo, const void *pvBuff, size_t zBuffSize)

Write the specified number of bytes to the IO.


The documentation for this struct was generated from the following file: