Skip to content

Struct ns_usb_config_t

ClassList > ns_usb_config_t

USB Configuration Struct.

  • #include <ns_usb.h>

Public Attributes

Type Name
const ns_core_api_t * api
API prefix.
ns_tusb_desc_webusb_url_t * desc_url
WebUSB URL descriptor.
ns_usb_device_type_e deviceType
Device type, only CDC is currently supported.
void * rx_buffer
Pointer to allocated buffer which USB CDC will use for rx transfers.
uint16_t rx_bufferLength
Length of rx buffer.
ns_usb_rx_cb rx_cb
Callback for rx events.
ns_usb_service_cb service_cb
Callback for service events.
void * tx_buffer
Pointer to allocated buffer which USB CDC will use for tx transfers.
uint16_t tx_bufferLength
Length of tx buffer.
ns_usb_tx_cb tx_cb
Callback for tx events.

Public Attributes Documentation

variable api

const ns_core_api_t* ns_usb_config_t::api;

variable desc_url

ns_tusb_desc_webusb_url_t* ns_usb_config_t::desc_url;

variable deviceType

ns_usb_device_type_e ns_usb_config_t::deviceType;

variable rx_buffer

void* ns_usb_config_t::rx_buffer;

variable rx_bufferLength

uint16_t ns_usb_config_t::rx_bufferLength;

variable rx_cb

ns_usb_rx_cb ns_usb_config_t::rx_cb;

variable service_cb

ns_usb_service_cb ns_usb_config_t::service_cb;

variable tx_buffer

void* ns_usb_config_t::tx_buffer;

variable tx_bufferLength

uint16_t ns_usb_config_t::tx_bufferLength;

variable tx_cb

ns_usb_tx_cb ns_usb_config_t::tx_cb;

The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-usb/includes-api/ns_usb.h