Atmel Software Framework

uhi_api_t Struct Reference

UHI API.

The callbacks within this structure are called only by USB Host Controller (UHC)

#include <uhi.h>

Data Fields

void(* enable )(uhc_device_t *)
 Enable the interface. More...
 
uhc_enum_status_t(* install )(uhc_device_t *)
 Install interface Allocate interface endpoints if supported. More...
 
void(* sof_notify )(bool b_micro)
 Signal that a SOF has occurred. More...
 
void(* uninstall )(uhc_device_t *)
 Uninstall the interface (if installed) More...
 

void(* uhi_api_t::enable)(uhc_device_t *)

Enable the interface.

Enable a USB interface corresponding to UHI.

Parameters
uhc_device_tDevice to request

Referenced by uhc_enumeration_step15().

uhc_enum_status_t(* uhi_api_t::install)(uhc_device_t *)

Install interface Allocate interface endpoints if supported.

Parameters
uhc_device_tDevice to request
Returns
status of the install
void(* uhi_api_t::sof_notify)(bool b_micro)

Signal that a SOF has occurred.

Referenced by uhc_notify_sof().

void(* uhi_api_t::uninstall)(uhc_device_t *)

Uninstall the interface (if installed)

Parameters
uhc_device_tDevice to request

Referenced by uhc_connection_tree(), and uhc_enumeration_step15().