ruuvi.drivers.c
${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
|
#include "ruuvi_driver_enabled_modules.h"
#include "ruuvi_driver_error.h"
#include "ruuvi_driver_sensor.h"
#include <stddef.h>
Go to the source code of this file.
Enumerations | |
enum | ri_log_severity_t { RI_LOG_LEVEL_NONE = 0 , RI_LOG_LEVEL_ERROR , RI_LOG_LEVEL_WARNING , RI_LOG_LEVEL_INFO , RI_LOG_LEVEL_DEBUG } |
Enable implementation selected by application. More... | |
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) |
Interface for printing out logging. The application configuration and underlying implementation decide how the log messages are handled, i.e. sent via RTT, UART or BLE.
Definition in file ruuvi_interface_log.h.