![]() |
Open FFBoard
Open source force feedback firmware
|
#include <USBdevice.h>
Public Member Functions | |
| USBdevice (const tusb_desc_device_t *deviceDesc, const uint8_t(*confDesc), const usb_string_desc_t *strings, uint8_t appendSerial=4) | |
| virtual | ~USBdevice () |
| void | Run () |
| virtual void | registerUsb () |
| virtual const uint8_t * | getUsbDeviceDesc () |
| virtual const uint8_t * | getUsbConfigurationDesc (uint8_t index) |
| virtual uint16_t * | getUsbStringDesc (uint8_t index, uint16_t langid) |
| virtual std::string | getUsbSerial () |
Public Member Functions inherited from cpp_freertos::Thread | |
| Thread (const std::string Name, uint16_t StackDepth, UBaseType_t Priority) | |
| Thread (const char *Name, uint16_t StackDepth, UBaseType_t Priority) | |
| Thread (uint16_t StackDepth, UBaseType_t Priority) | |
| bool | Start () |
| virtual | ~Thread () |
| TaskHandle_t | GetHandle () |
| void | Suspend () |
| void | Resume () |
| void | ResumeFromISR () |
| void | Notify () |
| void | NotifyFromISR () |
| uint32_t | WaitForNotification (TickType_t Timeout=portMAX_DELAY) |
| UBaseType_t | GetPriority () |
| UBaseType_t | GetPriorityFromISR () |
| void | SetPriority (UBaseType_t NewPriority) |
| std::string | GetName () |
| char * | GetName () |
Protected Attributes | |
| const tusb_desc_device_t * | desc_device |
| const uint8_t * | desc_conf |
| const usb_string_desc_t * | string_desc |
| uint8_t | appendSerial |
Additional Inherited Members | |
Static Public Member Functions inherited from cpp_freertos::Thread | |
| static void | Yield () |
| static void | StartScheduler () |
| static void | EndScheduler () |
Protected Member Functions inherited from cpp_freertos::Thread | |
| virtual void | Cleanup () |
| void | Delay (const TickType_t Delay) |
| void | DelayUntil (const TickType_t Period) |
| void | ResetDelayUntil () |
| bool | Wait (ConditionVariable &Cv, Mutex &CvLock, TickType_t Timeout=portMAX_DELAY) |
This class defines a usb device and implements callbacks for getting the basic usb descriptors for tinyusb. Different usb configurations are predefined in usb_descriptors.c appendSerial: adds the last n chars of the serial number to the interface strings
Definition at line 26 of file USBdevice.h.
| USBdevice::USBdevice | ( | const tusb_desc_device_t * | deviceDesc, |
| const uint8_t * | confDesc, | ||
| const usb_string_desc_t * | strings, | ||
| uint8_t | appendSerial = 4 ) |
Definition at line 13 of file USBdevice.cpp.
|
virtual |
Definition at line 18 of file USBdevice.cpp.
|
virtual |
Definition at line 55 of file USBdevice.cpp.
|
virtual |
Definition at line 51 of file USBdevice.cpp.
|
virtual |
Generates a unique id string from the hardware id
Definition at line 43 of file USBdevice.cpp.
|
virtual |
Returns a usb formatted string from the stringtable
Definition at line 62 of file USBdevice.cpp.
|
virtual |
Registers the usb callbacks and starts the tinyusb main thread
Definition at line 25 of file USBdevice.cpp.
|
virtual |
Implementation of your actual thread code. You must override this function.
Implements cpp_freertos::Thread.
Definition at line 33 of file USBdevice.cpp.
|
protected |
Definition at line 42 of file USBdevice.h.
|
protected |
Definition at line 40 of file USBdevice.h.
|
protected |
Definition at line 39 of file USBdevice.h.
|
protected |
Definition at line 41 of file USBdevice.h.