rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
wa_sink_t Struct Reference

Data Fields

int32_t(*) put (void *ctx, const uint8_t *p, uint32_t n)
wa_wait_t(*) wait (void *ctx, uint32_t ms)
bool(*) stop (void *ctx)
uint32_t(*) now_ms (void *ctx)
void * ctx

Field Documentation

◆ now_ms

uint32_t(*) wa_sink_t::now_ms(void *ctx)

Milliseconds; wraps at 2^32.

◆ put

int32_t(*) wa_sink_t::put(void *ctx, const uint8_t *p, uint32_t n)

Queue up to n bytes without waiting: the bytes taken, 0 when none fit, -1 when the connection failed.

◆ stop

bool(*) wa_sink_t::stop(void *ctx)

True when the transfer is to end now; NULL for never.

◆ wait

wa_wait_t(*) wa_sink_t::wait(void *ctx, uint32_t ms)

Wait at most ms for room.


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