log.hpp
Go to the documentation of this file.
25 #define MPU_LOGE(format, ...) if (CONFIG_MPU_LOG_LEVEL >= ESP_LOG_ERROR) { ESP_LOGE(TAG, format, ##__VA_ARGS__); }
26 #define MPU_LOGW(format, ...) if (CONFIG_MPU_LOG_LEVEL >= ESP_LOG_WARN) { ESP_LOGW(TAG, format, ##__VA_ARGS__); }
27 #define MPU_LOGI(format, ...) if (CONFIG_MPU_LOG_LEVEL >= ESP_LOG_INFO) { ESP_LOGI(TAG, format, ##__VA_ARGS__); }
28 #define MPU_LOGD(format, ...) if (CONFIG_MPU_LOG_LEVEL >= ESP_LOG_DEBUG) { ESP_LOGD(TAG, format, ##__VA_ARGS__); }
29 #define MPU_LOGV(format, ...) if (CONFIG_MPU_LOG_LEVEL >= ESP_LOG_VERBOSE) { ESP_LOGV(TAG, format, ##__VA_ARGS__); }
31 #define MPU_LOGEMSG(msg, format, ...) MPU_LOGE("%s()-> %s" format, __FUNCTION__, msg, ##__VA_ARGS__)
32 #define MPU_LOGWMSG(msg, format, ...) MPU_LOGW("%s()-> %s" format, __FUNCTION__, msg, ##__VA_ARGS__)
33 #define MPU_LOGIMSG(msg, format, ...) MPU_LOGI("%s()-> %s" format, __FUNCTION__, msg, ##__VA_ARGS__)
34 #define MPU_LOGDMSG(msg, format, ...) MPU_LOGD("%s()-> %s" format, __FUNCTION__, msg, ##__VA_ARGS__)
35 #define MPU_LOGVMSG(msg, format, ...) MPU_LOGV("%s()-> %s" format, __FUNCTION__, msg, ##__VA_ARGS__)
63 static const char FIFO_CORRUPTION[] = "FIFO Corruption. Quaternion data outside of the acceptable threshold";
74 static inline esp_err_t errorCheckLogger(esp_err_t x, const char* func, const int line, const char* expr) {
static const char UNKNOWN_DMP_CFG_STATE[]
Definition: log.hpp:60
static esp_err_t errorCheckLogger(esp_err_t x, const char *func, const int line, const char *expr)
Definition: log.hpp:74