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

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. More...
 
rd_status_t rd_errors_clear ()
 
void rd_error_cb_set (rd_error_cb cb)
 Configure application callback for errors. More...
 

Detailed Description

Check given error code, log warning on non-fatal error and reset on fatal error.

Author
Otso Jousimaa
Date
2019-01-31

Definition in file ruuvi_driver_error.c.