![]() |
Open FFBoard
Open source force feedback firmware
|
#include <CanAnalog.h>
Public Member Functions | |
CanAnalog () | |
~CanAnalog () | |
![]() | |
CanAnalogBase (uint8_t maxAxes=8) | |
virtual | ~CanAnalogBase () |
const ClassIdentifier | getInfo () |
void | restoreFlash () |
void | saveFlash () |
std::string | getHelpstring () |
void | setupCanPort () |
void | setAxisNum (uint8_t num) |
CommandStatus | command (const ParsedCommand &cmd, std::vector< CommandReply > &replies) |
void | canRxPendCallback (CANPort *port, CAN_rx_msg &msg) override |
![]() | |
AnalogSource () | |
virtual | ~AnalogSource () |
const ClassType | getClassType () override |
returns the used classchooser selection id of this instance More... | |
virtual std::vector< int32_t > * | getAxes () |
![]() | |
virtual | ~ChoosableClass () |
uint16_t | getSelectionID () |
![]() | |
PersistentStorage () | |
virtual | ~PersistentStorage () |
void | restoreFlashDelayed () |
![]() | |
CanHandler () | |
virtual | ~CanHandler () |
virtual void | canErrorCallback (CANPort *port, uint32_t errcode) |
virtual void | canRxFullCallback (CANPort *port, uint32_t fifo) |
virtual void | canTxCpltCallback (CANPort *port, uint32_t mailbox) |
virtual void | canTxAbortCallback (CANPort *port, uint32_t mailbox) |
![]() | |
virtual const ClassType | getClassType () |
CommandHandler (const char *clsname, uint16_t clsid, uint8_t instance=0) | |
virtual | ~CommandHandler () |
virtual bool | hasCommands () |
virtual void | setCommandsEnabled (bool enable) |
void | registerCommands () |
virtual CommandStatus | internalCommand (const ParsedCommand &cmd, std::vector< CommandReply > &replies) |
virtual std::string | getCommandsHelpstring () |
virtual std::string | getCsvHelpstring () |
virtual uint8_t | getCommandHandlerInstance () |
void | broadcastCommandReply (CommandReply reply, uint32_t cmdId, CMDtype type) |
void | sendCommandReplyAsync (CommandReply reply, uint32_t cmdId, CMDtype type, CommandInterface *interface=nullptr) |
virtual uint16_t | getCommandHandlerID () |
virtual CmdHandlerInfo * | getCommandHandlerInfo () |
virtual bool | isValidCommandId (uint32_t cmdid, uint32_t ignoredFlags=0, uint32_t requiredFlag=0) |
virtual CmdHandlerCommanddef * | getCommandFromName (const std::string &cmd, uint32_t ignoredFlags=0) |
virtual CmdHandlerCommanddef * | getCommandFromId (const uint32_t id, uint32_t ignoredFlags=0) |
template<typename ID > | |
void | registerCommand (const char *cmd, const ID cmdid, const char *help=nullptr, uint32_t flags=0) |
Additional Inherited Members | |
![]() | |
enum class | CanAnalog_commands : uint32_t { canid , amount , maxAmount } |
![]() | |
static bool | isCreatable () |
![]() | |
static bool | isCreatable () |
![]() | |
static std::vector< PersistentStorage * > & | getFlashHandlers () |
static void | restoreFlashStartupCb () |
![]() | |
static std::vector< CanHandler * > & | getCANHandlers () |
![]() | |
static void | logSerial (std::string string) |
Send a log formatted sequence. More... | |
static void | logSerialDebug (std::string string) |
Send a log formatted sequence if debug is on. More... | |
static bool | logsEnabled () |
static void | setLogsEnabled (bool enabled) |
static uint32_t | getClassIdFromName (const char *name) |
static const char * | getClassNameFromId (const uint32_t id) |
static CommandHandler * | getHandlerFromHandlerId (const uint16_t cmdhandlerID) |
static CommandHandler * | getHandlerFromId (const uint16_t id, const uint8_t instance=0xFF) |
static CommandHandler * | getHandlerFromClassName (const char *name, const uint8_t instance=0xFF) |
static std::vector< CommandHandler * > | getHandlersFromClassName (const char *name) |
static std::vector< CommandHandler * > | getHandlersFromId (const uint16_t id) |
static bool | isInHandlerList (CommandHandler *handler) |
static std::string | getAllHelpstrings () |
static std::vector< CommandHandler * > & | getCommandHandlers () |
template<typename TVal > | |
static CommandStatus | handleGetSet (const ParsedCommand &cmd, std::vector< CommandReply > &replies, TVal &value) |
template<typename TVal , class cls , class cls1 > | |
static CommandStatus | handleGetSetFunc (const ParsedCommand &cmd, std::vector< CommandReply > &replies, TVal &value, void(cls1::*setfunc)(TVal), cls *obj) |
template<typename TVal , class cls , class cls1 , class cls2 > | |
static CommandStatus | handleGetFuncSetFunc (const ParsedCommand &cmd, std::vector< CommandReply > &replies, TVal(cls1::*getfunc)(), void(cls2::*setfunc)(TVal), cls *obj) |
template<typename TVal , class cls , class cls1 > | |
static CommandStatus | handleGetFuncSet (const ParsedCommand &cmd, std::vector< CommandReply > &replies, TVal &value, TVal(cls1::*getfunc)(), cls *obj) |
![]() | |
std::vector< int32_t > | buf |
![]() | |
static ClassIdentifier | info |
![]() | |
static ClassIdentifier | info |
static const std::vector< class_entry< AnalogSource > > | all_analogsources |
![]() | |
static ClassIdentifier | info |
![]() | |
static bool | logEnabled = true |
![]() | |
void | setInstance (uint8_t instance) |
virtual void | addCommandHandler () |
virtual void | removeCommandHandler () |
![]() | |
static std::vector< uint16_t > & | getCommandHandlerIds () |
![]() | |
uint16_t | selectionId |
Should only be written by ClassChooser during creation. More... | |
![]() | |
bool | restoreDelayedFlag = false |
![]() | |
bool | commandsEnabled = true |
std::vector< CmdHandlerCommanddef > | registeredCommands |
CmdHandlerInfo | cmdHandlerInfo |
![]() | |
static bool | startupComplete = false |
Helper class to pass the max amount of buttons as a template parameter for classchooser
Definition at line 60 of file CanAnalog.h.
Definition at line 63 of file CanAnalog.h.
Definition at line 64 of file CanAnalog.h.