![]() |
Pico Core
|
#include "tusb.h"
#include "pico/unique_id.h"
Macros | |
#define | PICO_STDIO_USB_ENABLE_RESET_VIA_VENDOR_INTERFACE 0 |
#define | USBD_MANUFACTURER "Allen Institute" |
#define | USBD_PRODUCT "Harp Device" |
#define | USBD_DESC_STR_MAX (64) |
#define | USBD_VID (0x2E8A) |
#define | USBD_PID (0x000a) |
#define | TUD_RPI_RESET_DESC_LEN 9 |
#define | USBD_DESC_LEN (TUD_CONFIG_DESC_LEN + TUD_CDC_DESC_LEN) |
#define | USBD_CONFIGURATION_DESCRIPTOR_ATTRIBUTE (0) |
#define | USBD_MAX_POWER_MA (250) |
#define | USBD_ITF_CDC (0) |
#define | USBD_ITF_MAX (2) |
#define | USBD_CDC_EP_CMD (0x81) |
#define | USBD_CDC_EP_OUT (0x02) |
#define | USBD_CDC_EP_IN (0x82) |
#define | USBD_CDC_CMD_MAX_SIZE (8) |
#define | USBD_CDC_IN_OUT_MAX_SIZE (64) |
#define | USBD_STR_0 (0x00) |
#define | USBD_STR_MANUF (0x01) |
#define | USBD_STR_PRODUCT (0x02) |
#define | USBD_STR_SERIAL (0x03) |
#define | USBD_STR_CDC (0x04) |
#define | USBD_STR_RPI_RESET (0x05) |
#define | TUD_RPI_RESET_DESCRIPTOR(_itfnum, _stridx) |
Functions | |
const uint8_t * | tud_descriptor_device_cb (void) |
const uint8_t * | tud_descriptor_configuration_cb (__unused uint8_t index) |
const uint16_t * | tud_descriptor_string_cb (uint8_t index, __unused uint16_t langid) |
Variables | |
static const tusb_desc_device_t | usbd_desc_device |
static const uint8_t | usbd_desc_cfg [USBD_DESC_LEN] |
static char | usbd_serial_str [PICO_UNIQUE_BOARD_ID_SIZE_BYTES *2+1] |
static const char *const | usbd_desc_str [] |
#define PICO_STDIO_USB_ENABLE_RESET_VIA_VENDOR_INTERFACE 0 |
#define TUD_RPI_RESET_DESC_LEN 9 |
#define TUD_RPI_RESET_DESCRIPTOR | ( | _itfnum, | |
_stridx ) |
#define USBD_CDC_CMD_MAX_SIZE (8) |
#define USBD_CDC_EP_CMD (0x81) |
#define USBD_CDC_EP_IN (0x82) |
#define USBD_CDC_EP_OUT (0x02) |
#define USBD_CDC_IN_OUT_MAX_SIZE (64) |
#define USBD_CONFIGURATION_DESCRIPTOR_ATTRIBUTE (0) |
#define USBD_DESC_LEN (TUD_CONFIG_DESC_LEN + TUD_CDC_DESC_LEN) |
#define USBD_DESC_STR_MAX (64) |
#define USBD_ITF_CDC (0) |
#define USBD_ITF_MAX (2) |
#define USBD_MANUFACTURER "Allen Institute" |
#define USBD_MAX_POWER_MA (250) |
#define USBD_PID (0x000a) |
#define USBD_PRODUCT "Harp Device" |
#define USBD_STR_0 (0x00) |
#define USBD_STR_CDC (0x04) |
#define USBD_STR_MANUF (0x01) |
#define USBD_STR_PRODUCT (0x02) |
#define USBD_STR_RPI_RESET (0x05) |
#define USBD_STR_SERIAL (0x03) |
#define USBD_VID (0x2E8A) |
const uint8_t * tud_descriptor_configuration_cb | ( | __unused uint8_t | index | ) |
const uint8_t * tud_descriptor_device_cb | ( | void | ) |
const uint16_t * tud_descriptor_string_cb | ( | uint8_t | index, |
__unused uint16_t | langid ) |
|
static |
|
static |
|
static |
|
static |