ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_log.c File Reference

Go to the source code of this file.

Functions

rd_status_t ri_log_init (const ri_log_severity_t min_severity)
 Runs initialization code for the logging backend and sets the severity level. More...
 
rd_status_t ri_log_flush (void)
 Blocks until remaining log messages are sent out. More...
 
void ri_log (const ri_log_severity_t severity, const char *const message)
 Queues messages into log. More...
 
void ri_log_hex (const ri_log_severity_t severity, const uint8_t *const bytes, size_t byte_length)
 Queues bytes to be logged out as a hex string. More...
 
size_t ri_error_to_string (rd_status_t error, char *error_string, size_t space_remaining)
 Write text description of error message into given string pointer and null-terminate it. The string will be cut if it cannot fit into given space. More...
 
void ri_log_sensor_configuration (const ri_log_severity_t level, const rd_sensor_configuration_t *const configuration, const char *unit)