![]() |
Open FFBoard
Open source force feedback firmware
|
#include <FFBoardMainCommandThread.h>
Public Member Functions | |
FFBoardMainCommandThread (FFBoardMain *mainclass) | |
virtual | ~FFBoardMainCommandThread () |
const ClassType | getClassType () |
bool | addBuf (char *Buf, uint32_t *Len, bool clearReply) |
void | Run () |
![]() | |
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 () |
Static Public Member Functions | |
static void | wakeUp () |
![]() | |
static void | Yield () |
static void | StartScheduler () |
static void | EndScheduler () |
Public Attributes | |
std::string | cmd_reply |
std::vector< CommandResult > | results |
std::vector< ParsedCommand > | commands |
bool | clearReply = true |
Static Public Attributes | |
static Error | cmdNotFoundError = Error(ErrorCode::cmdNotFound,ErrorType::temporary,"Invalid command") |
static Error | cmdExecError = Error(ErrorCode::cmdExecutionError,ErrorType::temporary,"Error while executing command") |
Protected Member Functions | |
virtual void | executeCommands (std::vector< ParsedCommand > &commands, CommandInterface *commandInterface) |
![]() | |
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) |
Definition at line 31 of file FFBoardMainCommandThread.h.
FFBoardMainCommandThread::FFBoardMainCommandThread | ( | FFBoardMain * | mainclass | ) |
Definition at line 33 of file FFBoardMainCommandThread.cpp.
|
virtual |
Definition at line 40 of file FFBoardMainCommandThread.cpp.
bool FFBoardMainCommandThread::addBuf | ( | char * | Buf, |
uint32_t * | Len, | ||
bool | clearReply | ||
) |
|
protectedvirtual |
Executes parsed commands and calls other command handlers. Not global so it can be overridden by main classes to change behaviour or suppress outputs.
Definition at line 91 of file FFBoardMainCommandThread.cpp.
|
inline |
Definition at line 39 of file FFBoardMainCommandThread.h.
|
virtual |
Implementation of your actual thread code. You must override this function.
Implements cpp_freertos::Thread.
Definition at line 46 of file FFBoardMainCommandThread.cpp.
|
static |
Signals the command thread that new commands are ready to be executed
Definition at line 68 of file FFBoardMainCommandThread.cpp.
bool FFBoardMainCommandThread::clearReply = true |
Definition at line 52 of file FFBoardMainCommandThread.h.
std::string FFBoardMainCommandThread::cmd_reply |
Definition at line 49 of file FFBoardMainCommandThread.h.
|
static |
Definition at line 55 of file FFBoardMainCommandThread.h.
|
static |
Definition at line 54 of file FFBoardMainCommandThread.h.
std::vector<ParsedCommand> FFBoardMainCommandThread::commands |
Definition at line 51 of file FFBoardMainCommandThread.h.
std::vector<CommandResult> FFBoardMainCommandThread::results |
Definition at line 50 of file FFBoardMainCommandThread.h.