Struct HostTransport_ToHostApi

Struct Documentation

struct HostTransport_ToHostApi

Public Members

struct Ringbuffer ringbuffer

Circular buffer for buffering outgoing acceleration packets.

This buffer is used to pile up acceleration chunks when USB is busy and transmission has to be postponed. The buffer must only be utilized by TransportTx_TxAccelerationBuffer( struct HostTransport_Handle *, const struct Transport_Acceleration *, uint8_t, uint16_t).

Context: main()

See also

HostTransport_ToHostApi.txBuffer

uint16_t largestTxChunkBytes

Keeps track of the largest chunk size transmitted at once since sampling stream started.

Maximum possible chunk size is 2kB.

enum HostTransport_Status (*const doTransmitImpl)(uint8_t*, uint16_t)

Copies over buffer and goes into transmit mode.

Context: main() and interrupts

Return:

HostTransport_Status_Busy until transmission is finished

bool (*const isTransmitBusyImpl)()

Context: main() and interrupts

Return:

true until transmission is finished.