1#if defined(ARDUINO_ARCH_MBED)
13 PluggableUSBD().plug(
this);
23 assert(resolver.valid());
35 std::memory_order_relaxed);
39 USBDevice::RequestResult *result,
42 *result = USBDevice::PassThrough;
56 PluggableUSBD().endpoint_add(
59 PluggableUSBD().endpoint_add(
#define BEGIN_CS_NAMESPACE
void callback_state_change(DeviceState new_state) override
void callback_set_interface(uint16_t interface, uint8_t alternate) override
interrupt_atomic< bool > usb_connected
bool callback_set_configuration(uint8_t configuration) override
bool connected() const
Check if this class is connected and ready.
void init(EndpointResolver &resolver) override
uint32_t callback_request(const setup_packet_t *setup, USBDevice::RequestResult *result, uint8_t **data) override
bool callback_request_xfer_done(const setup_packet_t *setup, bool aborted) override
static constexpr uint32_t get_packet_size()
T load(std::memory_order o) const
void store(T t, std::memory_order o) noexcept
void reset(uint16_t packet_size=MaxPacketSize)
void reset(uint16_t packet_size=MaxPacketSize)