#include <HidCommandInterface.h>
|
| HID_CommandInterface () |
|
virtual | ~HID_CommandInterface () |
|
const std::string | getHelpstring () |
|
bool | getNewCommands (std::vector< ParsedCommand > &commands) |
|
void | sendReplies (const std::vector< CommandResult > &results, CommandInterface *originalInterface) |
|
void | hidCmdCallback (HID_CMD_Data_t *data) |
|
bool | sendHidCmd (HID_CMD_Data_t *data) |
|
void | queueReplyValues (const CommandReply &reply, const ParsedCommand &command) |
|
void | transferComplete (uint8_t itf, uint8_t const *report, uint8_t len) |
|
bool | readyToSend () |
|
void | Run () |
|
bool | waitingToSend () |
|
Public Member Functions inherited from CommandInterface |
| CommandInterface () |
|
virtual | ~CommandInterface () |
|
virtual bool | hasNewCommands () |
|
virtual void | sendReplyAsync (std::vector< CommandReply > &reply, CommandHandler *handler, uint32_t cmdId, CMDtype type) |
|
virtual void | batchDone () |
|
| 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 () |
|
Definition at line 35 of file HidCommandInterface.h.
◆ HID_CommandInterface()
HID_CommandInterface::HID_CommandInterface |
( |
| ) |
|
◆ ~HID_CommandInterface()
HID_CommandInterface::~HID_CommandInterface |
( |
| ) |
|
|
virtual |
◆ getHelpstring()
const std::string HID_CommandInterface::getHelpstring |
( |
| ) |
|
|
inlinevirtual |
◆ getNewCommands()
bool HID_CommandInterface::getNewCommands |
( |
std::vector< ParsedCommand > & |
commands | ) |
|
|
virtual |
◆ hidCmdCallback()
void HID_CommandInterface::hidCmdCallback |
( |
HID_CMD_Data_t * |
data | ) |
|
◆ queueReplyValues()
◆ readyToSend()
bool HID_CommandInterface::readyToSend |
( |
| ) |
|
|
virtual |
Returns true if it can send replies. False if the command thread should wait until previous replies are processed
Reimplemented from CommandInterface.
Definition at line 62 of file HidCommandInterface.cpp.
◆ Run()
void HID_CommandInterface::Run |
( |
| ) |
|
|
virtual |
Implementation of your actual thread code. You must override this function.
- Note
- If INCLUDE_vTaskDelete is defined, then you may return from your Run method. This will cause the task to be deleted from FreeRTOS, however you are still responsible to delete the task object. If this is not defined, then retuning from your Run() method will result in an assert.
Implements cpp_freertos::Thread.
Definition at line 39 of file HidCommandInterface.cpp.
◆ sendHidCmd()
bool HID_CommandInterface::sendHidCmd |
( |
HID_CMD_Data_t * |
data | ) |
|
◆ sendReplies()
◆ transferComplete()
void HID_CommandInterface::transferComplete |
( |
uint8_t |
itf, |
|
|
uint8_t const * |
report, |
|
|
uint8_t |
len |
|
) |
| |
◆ waitingToSend()
bool HID_CommandInterface::waitingToSend |
( |
| ) |
|
◆ commands
◆ enableBroadcastFromOtherInterfaces
bool HID_CommandInterface::enableBroadcastFromOtherInterfaces = true |
|
private |
◆ globalInterface
◆ maxQueuedReplies
const uint32_t HID_CommandInterface::maxQueuedReplies = 50 |
|
private |
◆ maxQueuedRepliesBroadcast
const uint32_t HID_CommandInterface::maxQueuedRepliesBroadcast = 10 |
|
private |
◆ outBuffer
std::vector<HID_CMD_Data_t> HID_CommandInterface::outBuffer |
|
private |
The documentation for this class was generated from the following files: