|
ruuvi.drivers.c ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
|
Check given error code, log warning on non-fatal error and reset on fatal error. More...
#include "ruuvi_driver_enabled_modules.h"#include "ruuvi_driver_error.h"#include "ruuvi_interface_log.h"#include <stdio.h>#include <string.h>Go to the source code of this file.
Functions | |
| void | rd_error_check (const rd_status_t error, const rd_status_t non_fatal_mask, const char *p_file, const int line) |
| Check given error code and compare it to non-fatal errors. | |
| rd_status_t | rd_errors_clear () |
| void | rd_error_cb_set (rd_error_cb cb) |
| Configure application callback for errors. | |
Check given error code, log warning on non-fatal error and reset on fatal error.
Definition in file ruuvi_driver_error.c.