#pragma once

#include <stddef.h>
#include <stdint.h>

int usb_transport_init(void);

int cdc_recv_frame(uint8_t *payload, size_t payload_max, size_t *out_len);
int cdc_send_frame(const uint8_t *payload, size_t len);

int webusb_recv_frame(uint8_t *payload, size_t payload_max, size_t *out_len);
int webusb_send_frame(const uint8_t *payload, size_t len);
