Data Fields

hal_usb_t Struct Reference
[Universal Serial Bus (hal_usb)]

#include <hal_usb.h>

Data Fields

usb_descs_templ_t descs
uint8_t bm_state
uint8_t current_config
uint8_t current_alt_interface
hal_usb_state_t state
hal_usb_cb_device_req_t device_req
hal_usb_cb_reset_t reset
hal_usb_cb_resume_t resume
hal_usb_cb_suspend_t suspend

Detailed Description

A struct containing variables related to the USB HAL layer

Definition at line 192 of file hal_usb.h.


Field Documentation

usb_descs_templ_t descs

Structure containing device, string and configuration descriptors for a specific application

Definition at line 193 of file hal_usb.h.

uint8_t bm_state

Bitmask containing USB state information: bitmask: 0 - is_hw_reset, 1 - can signal remote wakeup, 2 - usb awake

Definition at line 194 of file hal_usb.h.

uint8_t current_config

Currently set configuration. If current_config is zero the device is not configured

Definition at line 195 of file hal_usb.h.

Currently alternative configuration. If an alternative configuration is chosen the index of the alternative configuration is stored here.

Definition at line 196 of file hal_usb.h.

Enum containing USB state information as described in Chapter 9 of the USB 2.0 specification.

Definition at line 197 of file hal_usb.h.

Definition at line 199 of file hal_usb.h.

Definition at line 200 of file hal_usb.h.

Definition at line 201 of file hal_usb.h.

Definition at line 202 of file hal_usb.h.


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