Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Interface with USB Host Core (UHC)

Define and functions required by UHC.

Macros

#define UHI_MSC
 Global define which contains standard UHI API for UHC. More...
 

Functions required by UHC

uhc_enum_status_t uhi_msc_install (uhc_device_t *dev)
 
void uhi_msc_enable (uhc_device_t *dev)
 Enable the interface. More...
 
void uhi_msc_uninstall (uhc_device_t *dev)
 Uninstall the interface (if installed). More...
 

#define UHI_MSC
Value:
{ \
.install = uhi_msc_install, \
.enable = uhi_msc_enable, \
.uninstall = uhi_msc_uninstall, \
.sof_notify = NULL, \
}
#define NULL
Definition: def.h:47
void uhi_msc_uninstall(uhc_device_t *dev)
Uninstall the interface (if installed).
Definition: uhi_msc.c:316
uhc_enum_status_t uhi_msc_install(uhc_device_t *dev)
Install interface.
void uhi_msc_enable(uhc_device_t *dev)
Enable the interface.
Definition: uhi_msc.c:291

Global define which contains standard UHI API for UHC.

It must be added in USB_HOST_UHI define from conf_usb_host.h file.

void uhi_msc_enable ( uhc_device_t dev)

Enable the interface.

Enable a USB interface corresponding to UHI.

Parameters
[in]uhc_device_tDevice to request

References Assert, b_uhi_msc_free, uhi_msc_dev_t::dev, NULL, and uhi_msc_enable_step1().

uhc_enum_status_t uhi_msc_install ( uhc_device_t dev)
void uhi_msc_uninstall ( uhc_device_t dev)

Uninstall the interface (if installed).

Parameters
[in]uhc_device_tDevice to request

References uhi_msc_dev_t::dev, uhi_msc_dev_t::lun, NULL, and UHI_MSC_CHANGE.