#include <MIDI_Interfaces/USBMIDI/mbed/PluggableUSBMIDI.hpp>
Definition at line 18 of file PluggableUSBMIDI.hpp.
◆ setup_packet_t
◆ DeviceState
◆ microseconds
◆ MessageType [1/2]
◆ rbuffer_t
◆ MessageType [2/2]
◆ wbuffer_t
◆ PluggableUSBMIDI()
◆ ~PluggableUSBMIDI()
◆ get_packet_size()
static constexpr uint32_t get_packet_size |
( |
| ) |
|
|
inlinestaticconstexprprivate |
◆ start_timeout()
◆ cancel_timeout()
◆ tx_start()
void tx_start |
( |
const void * | data, |
|
|
uint32_t | size ) |
|
inlineprivate |
◆ tx_start_timeout()
void tx_start_timeout |
( |
const void * | data, |
|
|
uint32_t | size ) |
|
inlineprivate |
◆ tx_start_isr()
void tx_start_isr |
( |
const void * | data, |
|
|
uint32_t | size ) |
|
inlineprivate |
◆ rx_start()
void rx_start |
( |
void * | data, |
|
|
uint32_t | size ) |
|
inlineprivate |
◆ rx_start_isr()
void rx_start_isr |
( |
void * | data, |
|
|
uint32_t | size ) |
|
inlineprivate |
◆ connected()
Check if this class is connected and ready.
◆ connectedForWrite()
bool connectedForWrite |
( |
| ) |
const |
|
inline |
◆ read() [1/2]
Try reading a 4-byte MIDI USB message.
- Returns
- The message or 0x00000000 if no messages available.
Definition at line 62 of file PluggableUSBMIDI.hpp.
◆ setTimeout()
Set the timeout, the number of microseconds to buffer the outgoing MIDI messages.
A shorter timeout usually results in lower latency, but also causes more overhead, because more packets might be required.
Definition at line 78 of file PluggableUSBMIDI.hpp.
◆ setErrorTimeout()
◆ init()
void init |
( |
EndpointResolver & | resolver | ) |
|
|
overrideprotected |
◆ callback_state_change()
◆ callback_request()
uint32_t callback_request |
( |
const setup_packet_t * | setup, |
|
|
USBDevice::RequestResult * | result, |
|
|
uint8_t ** | data ) |
|
overrideprotected |
◆ callback_request_xfer_done()
bool callback_request_xfer_done |
( |
const setup_packet_t * | setup, |
|
|
bool | aborted ) |
|
overrideprotected |
◆ callback_set_configuration()
bool callback_set_configuration |
( |
uint8_t | configuration | ) |
|
|
overrideprotected |
◆ callback_set_interface()
void callback_set_interface |
( |
uint16_t | interface, |
|
|
uint8_t | alternate ) |
|
overrideprotected |
◆ string_iinterface_desc()
const uint8_t * string_iinterface_desc |
( |
| ) |
|
|
overrideprotected |
◆ configuration_desc()
const uint8_t * configuration_desc |
( |
uint8_t | index | ) |
|
|
overrideprotected |
◆ getProductVersion()
uint8_t getProductVersion |
( |
| ) |
|
|
inlineoverrideprotected |
◆ timeout_callback()
void timeout_callback |
( |
| ) |
|
|
inlineprotected |
◆ in_callback()
◆ out_callback()
◆ read() [2/2]
Try reading a single message.
- Returns
- Whether a message was available.
◆ reset() [1/2]
◆ rx_callback()
void rx_callback |
( |
uint32_t | num_bytes_read | ) |
|
|
protectedinherited |
◆ write() [1/3]
Send a MIDI USB message.
May block.
- Parameters
-
msg | The 4-byte MIDI USB message to send. |
◆ write() [2/3]
void write |
( |
const MessageType * | msgs, |
|
|
uint32_t | num_msgs ) |
|
inherited |
Send multiple MIDI USB messages.
May block.
- Parameters
-
msgs | An array of 4-byte MIDI USB messages to send. |
num_msgs | The number of messages in the array. |
◆ write() [3/3]
Send multiple MIDI USB messages. May block.
Definition at line 32 of file BulkTX.hpp.
◆ write_nonblock()
uint32_t write_nonblock |
( |
const MessageType * | msgs, |
|
|
uint32_t | num_msgs ) |
|
inherited |
Send multiple MIDI USB messages without blocking.
- Parameters
-
msgs | An array of 4-byte MIDI USB messages to send. |
num_msgs | The number of messages in the array. |
- Returns
- The number of messages that were actually sent.
◆ send_now()
Try sending the buffered data now.
Start transmitting the latest packet if possible, even if it isn't full yet. If the latest packet is empty, this function has no effect.
◆ is_done()
Check if all transfers have completed.
◆ getWriteError()
uint32_t getWriteError |
( |
| ) |
const |
|
inlineinherited |
Get the number messages that failed to send.
Definition at line 54 of file BulkTX.hpp.
◆ clearWriteError()
uint32_t clearWriteError |
( |
| ) |
|
|
inlineinherited |
Get and clear the number messages that failed to send.
Definition at line 56 of file BulkTX.hpp.
◆ reset() [2/2]
◆ wait_connect()
◆ index_of()
◆ other_buf()
◆ write_impl()
uint32_t write_impl |
( |
const MessageType * | msgs, |
|
|
uint32_t | num_msgs ) |
|
privateinherited |
◆ tx_callback()
◆ usb_connected
◆ timeout_duration
◆ error_timeout_duration
◆ timeout
◆ bulk_in_ep
◆ bulk_out_ep
◆ config_descriptor
uint8_t config_descriptor[0x65] |
|
protected |
◆ MaxPacketSize
constexpr uint16_t MaxPacketSize |
|
staticconstexprprivateinherited |
◆ SizeReserved
constexpr uint16_t SizeReserved |
|
staticconstexprprivateinherited |
◆ NumRxPackets
constexpr uint16_t NumRxPackets |
|
staticconstexprprivateinherited |
◆ mo_seq
constexpr std::memory_order mo_seq |
|
staticconstexprprivateinherited |
◆ mo_rel
constexpr std::memory_order mo_rel |
|
staticconstexprprivateinherited |
◆ mo_acq
constexpr std::memory_order mo_acq |
|
staticconstexprprivateinherited |
◆ mo_rlx
constexpr std::memory_order mo_rlx |
|
staticconstexprprivateinherited |
◆ mo_acq_rel
constexpr std::memory_order mo_acq_rel |
|
staticconstexprprivateinherited |
◆ reading
◆ writing
◆ disconnected
The documentation for this class was generated from the following file: