# usb_func_iface Struct Reference

A USB device interface. More...

`#include <function_core.h>`

Collaboration diagram for usb_func_iface:

[legend]

## Data Fields
struct usb_func_iface_setting * | cur_setting
| The current setting of this interface.
size_t | nr_settings
| The number of alternate settings for this interface.
struct usb_func_iface_setting | setting [1]
| The available alternate settings for this interface.

## Detailed Description

A USB device interface.

Definition at line 109 of file function_core.h.

## Field Documentation

struct usb_func_iface_setting* usb_func_iface::cur_setting`[read]`

The current setting of this interface.

Definition at line 111 of file function_core.h.

Referenced by usb_func_get_interface(), usb_func_process_setup_request(), and usb_func_set_interface().

size_t usb_func_iface::nr_settings

The number of alternate settings for this interface.

Definition at line 113 of file function_core.h.

Referenced by usb_func_add_interface(), and usb_func_set_interface().

struct usb_func_iface_setting usb_func_iface::setting[1]`[read]`

The available alternate settings for this interface.

Definition at line 115 of file function_core.h.

Referenced by usb_func_add_interface(), and usb_func_set_interface().

The documentation for this struct was generated from the following file:

- include/usb/function_core.h