Intel® Quark™ Microcontroller Software Interface 1.4.0 Intel® Quark™ Microcontroller BSP

- Main Page
- Modules
- Data Structures
- Files

- Data Structures
- Data Structure Index
- Data Fields

Data Fields
qm_usb_ep_config_t Struct Reference
USB

USB Endpoint Configuration. More...

`#include <qm_usb.h>`

## Data Fields
qm_usb_ep_type_t | type
| Endpoint type. More...
uint16_t | max_packet_size
| Endpoint max packet size. More...
void(* | callback )(void *data, int error, qm_usb_ep_idx_t ep, qm_usb_ep_status_t status)
| Callback for the USB Endpoint status. More...
void * | callback_data
| Callback user data. More...

## Detailed Description

USB Endpoint Configuration.

Definition at line 51 of file qm_usb.h.

## Field Documentation

void(* qm_usb_ep_config_t::callback)(void *data, int error, qm_usb_ep_idx_t ep, qm_usb_ep_status_t status)

Callback for the USB Endpoint status.

Called for notifying of data received and available to application on this endpoint.

Parameters

  [in] | data | The callback user data.
  [in] | error | 0 on success. Negative errno for possible error codes.
  [in] | ep | Endpoint index.
  [in] | status | USB Endpoint status.

Definition at line 69 of file qm_usb.h.

void* qm_usb_ep_config_t::callback_data

Callback user data.

Definition at line 71 of file qm_usb.h.

uint16_t qm_usb_ep_config_t::max_packet_size

Endpoint max packet size.

Definition at line 53 of file qm_usb.h.

Referenced by qm_usb_ep_set_config().

qm_usb_ep_type_t qm_usb_ep_config_t::type

Endpoint type.

Definition at line 52 of file qm_usb.h.

Referenced by qm_usb_ep_set_config().