ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_communication_radio_test.h
Go to the documentation of this file.
1 #ifndef RUUVI_INTERFACE_COMMUNICATION_RADIO_TEST_H
2 #define RUUVI_INTERFACE_COMMUNICATION_RADIO_TEST_H
3 #include "ruuvi_driver_error.h"
6 #include <stdbool.h>
7 
21 /*
22  * @brief Runs radio integration tests.
23  *
24  * - Verify radio initialization.
25  * - Verify radio cannot be re-initialized without uninitialization.
26  * - Radio callbacks are not verified as radio module does not transmit by itself.
27  *
28  * @param[in] printfpf Function pointer to which test JSON is sent.
29  * @retval True if error occured.
30  * @retval False if no errors occured.
31  */
33 
42 void print_modulation (const rd_test_print_fp printfp,
43  const ri_radio_modulation_t modulation);
44 
46 #endif
void print_modulation(const rd_test_print_fp printfp, const ri_radio_modulation_t modulation)
Print used modulation to printfp.
bool ri_communication_radio_run_integration_test(const rd_test_print_fp printfp)
ri_radio_modulation_t
type of radio modulation to be used.
void(* rd_test_print_fp)(const char *const msg)
function pointer to print test information
Ruuvi error codes and error check function.