Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Classes | Public Attributes | List of all members
BulkRX< Derived, MessageTypeT, MaxPacketSizeV >::Reading Struct Reference

Detailed Description

template<class Derived, class MessageTypeT, uint16_t MaxPacketSizeV>
struct BulkRX< Derived, MessageTypeT, MaxPacketSizeV >::Reading

State for reading incoming USB data.

Definition at line 44 of file BulkRX.hpp.

+ Collaboration diagram for BulkRX< Derived, MessageTypeT, MaxPacketSizeV >::Reading:

Classes

struct  Buffer
 

Public Attributes

struct BulkRX::Reading::Buffer buffers [NumRxPackets]
 
interrupt_atomic< uint32_t > available {0}
 
uint32_t read_idx {0}
 
interrupt_atomic< uint32_t > write_idx {0}
 
interrupt_atomic< bool > reading {false}
 
uint16_t packet_size = MaxPacketSize
 

Member Data Documentation

◆ buffers

template<class Derived , class MessageTypeT , uint16_t MaxPacketSizeV>
struct BulkRX::Reading::Buffer buffers[NumRxPackets]

◆ available

template<class Derived , class MessageTypeT , uint16_t MaxPacketSizeV>
interrupt_atomic<uint32_t> available {0}

Definition at line 50 of file BulkRX.hpp.

◆ read_idx

template<class Derived , class MessageTypeT , uint16_t MaxPacketSizeV>
uint32_t read_idx {0}

Definition at line 51 of file BulkRX.hpp.

◆ write_idx

template<class Derived , class MessageTypeT , uint16_t MaxPacketSizeV>
interrupt_atomic<uint32_t> write_idx {0}

Definition at line 52 of file BulkRX.hpp.

◆ reading

template<class Derived , class MessageTypeT , uint16_t MaxPacketSizeV>
interrupt_atomic<bool> reading {false}

Definition at line 53 of file BulkRX.hpp.

◆ packet_size

template<class Derived , class MessageTypeT , uint16_t MaxPacketSizeV>
uint16_t packet_size = MaxPacketSize

Definition at line 54 of file BulkRX.hpp.


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