CMSIS-Driver  Version 2.7.1
Peripheral Interface for Middleware and Application Code
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Driver_USBH.c File Reference

Functions

ARM_DRIVER_VERSION ARM_USBH_GetVersion (void)
 Get driver version. More...
 
ARM_USBH_CAPABILITIES ARM_USBH_GetCapabilities (void)
 Get driver capabilities. More...
 
int32_t ARM_USBH_Initialize (ARM_USBH_SignalPortEvent_t cb_port_event, ARM_USBH_SignalPipeEvent_t cb_pipe_event)
 Initialize USB Host Interface. More...
 
int32_t ARM_USBH_Uninitialize (void)
 De-initialize USB Host Interface. More...
 
int32_t ARM_USBH_PowerControl (ARM_POWER_STATE state)
 Control USB Host Interface Power. More...
 
int32_t ARM_USBH_PortVbusOnOff (uint8_t port, bool vbus)
 Root HUB Port VBUS on/off. More...
 
int32_t ARM_USBH_PortReset (uint8_t port)
 Do Root HUB Port Reset. More...
 
int32_t ARM_USBH_PortSuspend (uint8_t port)
 Suspend Root HUB Port (stop generating SOFs). More...
 
int32_t ARM_USBH_PortResume (uint8_t port)
 Resume Root HUB Port (start generating SOFs). More...
 
ARM_USBH_PORT_STATE ARM_USBH_PortGetState (uint8_t port)
 Get current Root HUB Port State. More...
 
ARM_USBH_PIPE_HANDLE ARM_USBH_PipeCreate (uint8_t dev_addr, uint8_t dev_speed, uint8_t hub_addr, uint8_t hub_port, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_max_packet_size, uint8_t ep_interval)
 Create Pipe in System. More...
 
int32_t ARM_USBH_PipeModify (ARM_USBH_PIPE_HANDLE pipe_hndl, uint8_t dev_addr, uint8_t dev_speed, uint8_t hub_addr, uint8_t hub_port, uint16_t ep_max_packet_size)
 Modify Pipe in System. More...
 
int32_t ARM_USBH_PipeDelete (ARM_USBH_PIPE_HANDLE pipe_hndl)
 Delete Pipe from System. More...
 
int32_t ARM_USBH_PipeReset (ARM_USBH_PIPE_HANDLE pipe_hndl)
 Reset Pipe. More...
 
int32_t ARM_USBH_PipeTransfer (ARM_USBH_PIPE_HANDLE pipe_hndl, uint32_t packet, uint8_t *data, uint32_t num)
 Transfer packets through USB Pipe. More...
 
uint32_t ARM_USBH_PipeTransferGetResult (ARM_USBH_PIPE_HANDLE pipe_hndl)
 Get result of USB Pipe transfer. More...
 
int32_t ARM_USBH_PipeTransferAbort (ARM_USBH_PIPE_HANDLE pipe_hndl)
 Abort current USB Pipe transfer. More...
 
uint16_t ARM_USBH_GetFrameNumber (void)
 Get current USB Frame Number. More...
 
void ARM_USBH_SignalPortEvent (uint8_t port, uint32_t event)
 Signal Root HUB Port Event. More...
 
void ARM_USBH_SignalPipeEvent (ARM_USBH_PIPE_HANDLE pipe_hndl, uint32_t event)
 Signal Pipe Event. More...
 
ARM_DRIVER_VERSION ARM_USBH_HCI_GetVersion (void)
 Get USB Host HCI (OHCI/EHCI) driver version. More...
 
ARM_USBH_HCI_CAPABILITIES ARM_USBH_HCI_GetCapabilities (void)
 Get driver capabilities. More...
 
int32_t ARM_USBH_HCI_Initialize (ARM_USBH_HCI_Interrupt_t *cb_interrupt)
 Initialize USB Host HCI (OHCI/EHCI) Interface. More...
 
int32_t ARM_USBH_HCI_Uninitialize (void)
 De-initialize USB Host HCI (OHCI/EHCI) Interface. More...
 
int32_t ARM_USBH_HCI_PowerControl (ARM_POWER_STATE state)
 Control USB Host HCI (OHCI/EHCI) Interface Power. More...
 
int32_t ARM_USBH_HCI_PortVbusOnOff (uint8_t port, bool vbus)
 USB Host HCI (OHCI/EHCI) Root HUB Port VBUS on/off. More...
 
void ARM_USBH_HCI_Interrupt (void)
 USB Host HCI Interrupt Handler. More...