Library Functions.
More...
Library Functions.
| void TM_USB_DriveVBUSCallback |
( |
TM_USB_t |
USB_Mode, |
|
|
uint8_t |
state |
|
) |
| |
Enables or disabled VBUS (Power supply) for USB communication.
- Note
- This functions has sense only if you have external hardware which can be controlled to enable/disable VBUS
-
Functions has sense only when HOST mode is used with USB
- Parameters
-
| USB_Mode | USB Mode where VBUS should be enabled or disabled |
| state | State to use for VBUS
- 0: VBUS should be disabled, USB deactivated
- 1: VBUS should be enabled, USB activated
|
- Return values
-
- Note
- With __weak parameter to prevent link errors if not defined by user
Initializes USB for future work.
- Note
- This function must always be called at the beginning in case USB will be used in application
- Parameters
-
- Return values
-
Initializes USB Full Speed mode.
- Note
- This functions is called from USB stack when needed, no need for manual calling
- Parameters
-
- Return values
-
Initializes USB High Speed mode.
- Note
- This functions is called from USB stack when needed, no need for manual calling
- Parameters
-
- Return values
-