Library Functions.
More...
Library Functions.
| uint16_t TM_USBH_GetPID |
( |
TM_USB_t |
USB_Mode | ) |
|
Gets Product ID of connected USB device on specific USB PORT.
- Parameters
-
| USB_Mode | USB Mode where VID will be checked. This parameter can be a value of TM_USB_t enumeration |
- Return values
-
| 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
-
| Pointer | to 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_Mode | USB Mode where VID will be checked. This parameter can be a value of TM_USB_t enumeration |
- Return values
-
Initializes USB Host for specific mode.
- Parameters
-
| USB_Mode | USB Mode to be initialized. This parameter can be a value of TM_USB_t enumeration |
- Return values
-
Checks if USB device is connected on speficic USB mode.
- Parameters
-
| USB_Mode | USB Mode to be checked for connected device. This parameter can be a value of TM_USB_t enumeration |
- Return values
-
Checks if USB device is connected and class is ready to use.
- Parameters
-
| USB_Mode | USB Mode to be checked for ready device. This parameter can be a value of TM_USB_t enumeration |
- Return values
-
Processes USB Host for specific mode.
- Note
- This function HAVE TO be called periodically or USB HOST won't work!
- Parameters
-
| USB_Mode | USB Mode to be processed. This parameter can be a value of TM_USB_t enumeration |
- Return values
-
Restarts USB Host for specific mode.
- Parameters
-
| USB_Mode | USB Mode to be restarted. This parameter can be a value of TM_USB_t enumeration |
- Return values
-
Starts USB Host for specific mode.
- Parameters
-
| USB_Mode | USB Mode to be started. This parameter can be a value of TM_USB_t enumeration |
- Return values
-
Initializes USB Host for specific mode.
- Parameters
-
| USB_Mode | USB Mode to be initialized. This parameter can be a value of TM_USB_t enumeration |
- Return values
-