ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_driver_sensor_test.h
Go to the documentation of this file.
1 
9 #ifndef SENSOR_TEST_H
10 #define SENSOR_TEST_H
11 
16 #include "ruuvi_driver_error.h"
17 #include "ruuvi_driver_sensor.h"
18 #include "ruuvi_driver_test.h"
19 #include "ruuvi_interface_log.h"
20 #include "ruuvi_interface_gpio.h"
22 #include "ruuvi_task_sensor.h"
23 #include <stdbool.h>
24 
25 /*
26  * @brief rd_sensor_run_integration_test
27  * called by run_integration_tests.c/integration_test_sensors
28  *
29  * @param[in] printfp Function pointer to which test JSON is sent.
30  * @param[in] p_sensor_ctx Context of sensor to test.
31  * @retval true if error occured in test.
32  * @retval false if no errors occured.
33  */
35  rt_sensor_ctx_t * p_sensor_ctx);
36 
65 void rd_sensor_data_print (const rd_sensor_data_t * const p_data,
66  const rd_test_print_fp printfp);
67 
69 #endif
void rd_sensor_data_print(const rd_sensor_data_t *const p_data, const rd_test_print_fp printfp)
Print Ruuvi Sensor data in human readable JSON.
bool rd_sensor_run_integration_test(const rd_test_print_fp printfp, rt_sensor_ctx_t *p_sensor_ctx)
void(* rd_test_print_fp)(const char *const msg)
function pointer to print test information
Ruuvi error codes and error check function.
Ruuvi sensor interface Lifecycle: Beta
Functions for testing drivers.
Generic sensor data struct.