|
MIP_SDK
v4.0.0-237-g9879cb72
MicroStrain Communications Library for embedded systems
|
Functions | |
| void | microstrain_logging_init (const microstrain_log_callback callback, const microstrain_log_level level, void *user) |
| Initializes the logger with a callback and user data. Call MICROSTRAIN_LOG_INIT instead of using this function directly. This function does not have to be called unless the user wants logging. More... | |
| microstrain_log_callback | microstrain_logging_callback (void) |
| Gets the currently active logging callback. More... | |
| microstrain_log_level | microstrain_logging_level (void) |
| Gets the currently active logging level. More... | |
| void * | microstrain_logging_user_data (void) |
| Gets the currently active logging user data. More... | |
| void | microstrain_logging_log_v (const microstrain_log_level level, const char *fmt, va_list args) |
| Internal log function called by variadic logging macros. Call MICROSTRAIN_LOG_*_V macros instead of using this function directly. More... | |
| void | microstrain_logging_log (const microstrain_log_level level, const char *fmt,...) |
| Internal log function called by logging macros. Call MICROSTRAIN_LOG_* macros instead of using this function directly. More... | |
| const char * | microstrain_logging_level_name (const microstrain_log_level level) |
| Returns a string representing the given log level. More... | |
| void | microstrain_log_bytes (const microstrain_log_level level, const char *msg, const uint8_t *data, size_t length) |
| Print bytes in hex to the log. More... | |
Variables | |
| microstrain_log_callback | microstrain_log_callback_ = NULL |
| Global logging callback. Do not access directly. More... | |
| microstrain_log_level | microstrain_log_level_ = MICROSTRAIN_LOG_LEVEL_OFF |
| Global logging level. Do not access directly. More... | |
| void * | microstrain_log_user_data_ = NULL |
| Global logging user data. Do not access directly. More... | |
| microstrain_log_callback microstrain_log_callback_ = NULL |
| microstrain_log_level microstrain_log_level_ = MICROSTRAIN_LOG_LEVEL_OFF |
| void* microstrain_log_user_data_ = NULL |
1.8.17