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_USBD_Result_t TM_USBD_Init (TM_USB_t USB_Mode)
 Initializes USB Device for specific mode. More...
 
TM_USBD_Result_t TM_USBD_Start (TM_USB_t USB_Mode)
 Starts USB Device for specific mode. More...
 
TM_USBD_Result_t TM_USBD_Restart (TM_USB_t USB_Mode)
 Restarts USB Device for specific mode. More...
 
TM_USBD_Result_t TM_USBD_Stop (TM_USB_t USB_Mode)
 Initializes USB Device for specific mode. More...
 
TM_USBD_Result_t TM_USBD_IsDeviceReady (TM_USB_t USB_Mode)
 Checks if connected device to HOST mode is configured and ready to use. More...
 
USBD_HandleTypeDef * TM_USBD_GetUSBPointer (TM_USB_t USB_Mode)
 Gets pointer to USB handle. More...
 

Detailed Description

Library Functions.

Function Documentation

USBD_HandleTypeDef* TM_USBD_GetUSBPointer ( TM_USB_t  USB_Mode)

Gets pointer to USB handle.

Note
This function is not meant for public use
Return values
Pointerto USBD_HandleTypeDef structure
TM_USBD_Result_t TM_USBD_Init ( TM_USB_t  USB_Mode)

Initializes USB Device 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_USBD_Result_t enumeration
TM_USBD_Result_t TM_USBD_IsDeviceReady ( TM_USB_t  USB_Mode)

Checks if connected device to HOST mode is configured and ready to use.

Parameters
USB_ModeUSB port where to check for ready status. This parameter can be a value of TM_USB_t enumeration
Return values
Memberof TM_USBD_Result_t enumeration
TM_USBD_Result_t TM_USBD_Restart ( TM_USB_t  USB_Mode)

Restarts USB Device 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_USBD_Result_t enumeration
TM_USBD_Result_t TM_USBD_Start ( TM_USB_t  USB_Mode)

Starts USB Device 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_USBD_Result_t enumeration
TM_USBD_Result_t TM_USBD_Stop ( TM_USB_t  USB_Mode)

Initializes USB Device 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_USBD_Result_t enumeration