|
| | I2CPort (I2C_HandleTypeDef &hi2c, const I2CPortHardwareConfig &presets, uint8_t instance=0) |
| |
| virtual | ~I2CPort () |
| |
| void | configurePort (I2C_InitTypeDef *config) |
| |
| void | resetPort () |
| |
| void | takePort (I2CDevice *device) |
| |
| void | freePort (I2CDevice *device) |
| |
| int32_t | getPortUsers () |
| |
| void | setSpeedPreset (uint8_t preset) |
| |
| uint8_t | getSpeedPreset () |
| |
| bool | transmitMaster (I2CDevice *device, const uint16_t addr, uint8_t *pData, const uint16_t size, const uint32_t timeout, bool shiftAddr=true) |
| |
| bool | transmitMasterDMA (I2CDevice *device, const uint16_t addr, uint8_t *pData, const uint16_t size, bool shiftAddr=true) |
| |
| bool | transmitMasterIT (I2CDevice *device, const uint16_t addr, uint8_t *pData, const uint16_t size, bool shiftAddr=true) |
| |
| bool | receiveMaster (I2CDevice *device, const uint16_t addr, uint8_t *pData, const uint16_t size, const uint32_t timeout, bool shiftAddr=true) |
| |
| bool | receiveMasterDMA (I2CDevice *device, const uint16_t addr, uint8_t *pData, const uint16_t size, bool shiftAddr=true) |
| |
| bool | receiveMasterIT (I2CDevice *device, const uint16_t addr, uint8_t *pData, const uint16_t size, bool shiftAddr=true) |
| |
| bool | writeMem (I2CDevice *device, const uint16_t devAddr, const uint16_t memAddr, const uint16_t memAddSize, uint8_t *pData, const uint16_t size, const uint32_t timeout, bool shiftAddr=true) |
| |
| bool | readMem (I2CDevice *device, const uint16_t devAddr, const uint16_t memAddr, const uint16_t memAddSize, uint8_t *pData, const uint16_t size, const uint32_t timeout, bool shiftAddr=true) |
| |
| bool | readMemIT (I2CDevice *device, const uint16_t devAddr, const uint16_t memAddr, const uint16_t memAddSize, uint8_t *pData, const uint16_t size, bool shiftAddr=true) |
| |
| bool | writeMemIT (I2CDevice *device, const uint16_t devAddr, const uint16_t memAddr, const uint16_t memAddSize, uint8_t *pData, const uint16_t size, bool shiftAddr=true) |
| |
| bool | isDeviceReady (I2CDevice *device, const uint16_t devAddr, const uint32_t trials, uint32_t timeout, bool shiftAddr=true) |
| |
| void | takeSemaphore () |
| |
| void | giveSemaphore () |
| |
| bool | isTaken () |
| |
| void | I2cTxCplt (I2C_HandleTypeDef *hi2c) |
| |
| void | I2cRxCplt (I2C_HandleTypeDef *hi2c) |
| |
| void | I2cError (I2C_HandleTypeDef *hi2c) |
| |
| CommandStatus | command (const ParsedCommand &cmd, std::vector< CommandReply > &replies) |
| |
| void | registerCommands () |
| |
| void | saveFlash () |
| |
| void | restoreFlash () |
| |
| const ClassIdentifier | getInfo () |
| | Command handlers always have class infos. Works well with ChoosableClass.
|
| |
| const ClassType | getClassType () override |
| |
Public Member Functions inherited from I2CHandler |
| | I2CHandler () |
| |
| virtual | ~I2CHandler () |
| |
Public Member Functions inherited from CommandHandler |
| | 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 | getHelpstring () |
| |
| 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) |
| |
| | PersistentStorage () |
| |
| virtual | ~PersistentStorage () |
| |
| void | restoreFlashDelayed () |
| |
|
Static Public Member Functions inherited from I2CHandler |
| static std::vector< I2CHandler * > & | getI2CHandlers () |
| |
Static Public Member Functions inherited from CommandHandler |
| static void | logSerial (std::string string) |
| | Send a log formatted sequence.
|
| |
| static void | logSerialDebug (std::string string) |
| | Send a log formatted sequence if debug is on.
|
| |
| 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) |
| |
| static std::vector< PersistentStorage * > & | getFlashHandlers () |
| |
| static void | restoreFlashStartupCb () |
| |
Protected Member Functions inherited from CommandHandler |
| void | setInstance (uint8_t instance) |
| |
| virtual void | addCommandHandler () |
| |
| virtual void | removeCommandHandler () |
| |
Static Protected Member Functions inherited from CommandHandler |
| static std::vector< uint16_t > & | getCommandHandlerIds () |
| |
Protected Attributes inherited from CommandHandler |
| bool | commandsEnabled = true |
| |
| std::vector< CmdHandlerCommanddef > | registeredCommands |
| |
| CmdHandlerInfo | cmdHandlerInfo |
| |
| bool | restoreDelayedFlag = false |
| |
| static bool | startupComplete = false |
| |
Definition at line 43 of file I2C.h.