I2C shell implementation.
This commit is contained in:
Totoo 2024-11-08 11:46:27 +01:00 committed by GitHub
parent c31fef0535
commit 5020e5bd28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 298 additions and 19 deletions

View file

@ -87,6 +87,8 @@ class I2CDevManager {
static I2cDev* get_dev_by_model(I2C_DEVMDL model); // caller function needs to cast to the specific device!
static std::vector<I2C_DEVMDL> get_dev_list_by_model(); // returns the currently discovered
static std::vector<uint8_t> get_gev_list_by_addr(); // returns the currently discovered
static void setEventDispatcher(EventDispatcher* ed) { _eventDispatcher = ed; }
static EventDispatcher* get_event_dispatcher() { return _eventDispatcher; }
private:
static uint16_t scan_interval;
@ -99,6 +101,8 @@ class I2CDevManager {
static msg_t timer_fn(void* arg);
static Thread* thread;
static Mutex mutex_list;
static EventDispatcher* _eventDispatcher;
};
}; // namespace i2cdev
#endif