TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Library Functions. More...

Functions

TM_USBH_Result_t TM_USBH_Init (TM_USB_t USB_Mode)
 Initializes USB Host for specific mode. More...
 
TM_USBH_Result_t TM_USBH_Start (TM_USB_t USB_Mode)
 Starts USB Host for specific mode. More...
 
TM_USBH_Result_t TM_USBH_Restart (TM_USB_t USB_Mode)
 Restarts USB Host for specific mode. More...
 
TM_USBH_Result_t TM_USBH_Stop (TM_USB_t USB_Mode)
 Initializes USB Host for specific mode. More...
 
TM_USBH_Result_t TM_USBH_Process (TM_USB_t USB_Mode)
 Processes USB Host for specific mode. More...
 
TM_USBH_Result_t TM_USBH_IsConnected (TM_USB_t USB_Mode)
 Checks if USB device is connected on speficic USB mode. More...
 
TM_USBH_Result_t TM_USBH_IsDeviceReady (TM_USB_t USB_Mode)
 Checks if USB device is connected and class is ready to use. More...
 
uint16_t TM_USBH_GetVID (TM_USB_t USB_Mode)
 Gets Vendor ID (Allocated by USB association) of connected USB device on specific USB PORT. More...
 
uint16_t TM_USBH_GetPID (TM_USB_t USB_Mode)
 Gets Product ID of connected USB device on specific USB PORT. More...
 
USBH_HandleTypeDef * TM_USBH_GetUSBPointer (TM_USB_t USB_Mode)
 Gets pointer to USB handle. More...
 

Detailed Description

Library Functions.

Function Documentation

uint16_t TM_USBH_GetPID ( TM_USB_t  USB_Mode)

Gets Product ID of connected USB device on specific USB PORT.

Parameters
USB_ModeUSB Mode where VID will be checked. This parameter can be a value of TM_USB_t enumeration
Return values
ProductID number
USBH_HandleTypeDef* TM_USBH_GetUSBPointer ( TM_USB_t  USB_Mode)

Gets pointer to USB handle.

Note
This function is not meant for public use
Return values
Pointerto USBH_HandleTypeDef structure
uint16_t TM_USBH_GetVID ( TM_USB_t  USB_Mode)

Gets Vendor ID (Allocated by USB association) of connected USB device on specific USB PORT.

Parameters
USB_ModeUSB Mode where VID will be checked. This parameter can be a value of TM_USB_t enumeration
Return values
VendorID number
TM_USBH_Result_t TM_USBH_Init ( TM_USB_t  USB_Mode)

Initializes USB Host for specific mode.

Parameters
USB_ModeUSB Mode to be initialized. This parameter can be a value of TM_USB_t enumeration
Return values
Memberof TM_USBH_Result_t enumeration
TM_USBH_Result_t TM_USBH_IsConnected ( TM_USB_t  USB_Mode)

Checks if USB device is connected on speficic USB mode.

Parameters
USB_ModeUSB Mode to be checked for connected device. This parameter can be a value of TM_USB_t enumeration
Return values
Memberof TM_USBH_Result_t enumeration
TM_USBH_Result_t TM_USBH_IsDeviceReady ( TM_USB_t  USB_Mode)

Checks if USB device is connected and class is ready to use.

Parameters
USB_ModeUSB Mode to be checked for ready device. This parameter can be a value of TM_USB_t enumeration
Return values
Memberof TM_USBH_Result_t enumeration
TM_USBH_Result_t TM_USBH_Process ( TM_USB_t  USB_Mode)

Processes USB Host for specific mode.

Note
This function HAVE TO be called periodically or USB HOST won't work!
Parameters
USB_ModeUSB Mode to be processed. This parameter can be a value of TM_USB_t enumeration
Return values
Memberof TM_USBH_Result_t enumeration
TM_USBH_Result_t TM_USBH_Restart ( TM_USB_t  USB_Mode)

Restarts USB Host for specific mode.

Parameters
USB_ModeUSB Mode to be restarted. This parameter can be a value of TM_USB_t enumeration
Return values
Memberof TM_USBH_Result_t enumeration
TM_USBH_Result_t TM_USBH_Start ( TM_USB_t  USB_Mode)

Starts USB Host for specific mode.

Parameters
USB_ModeUSB Mode to be started. This parameter can be a value of TM_USB_t enumeration
Return values
Memberof TM_USBH_Result_t enumeration
TM_USBH_Result_t TM_USBH_Stop ( TM_USB_t  USB_Mode)

Initializes USB Host for specific mode.

Parameters
USB_ModeUSB Mode to be initialized. This parameter can be a value of TM_USB_t enumeration
Return values
Memberof TM_USBH_Result_t enumeration