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
"
4
#include "
ruuvi_interface_communication_radio.h
"
5
#include "
ruuvi_interface_communication.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
*/
32
bool
ri_communication_radio_run_integration_test
(
const
rd_test_print_fp
printfp);
33
42
void
print_modulation
(
const
rd_test_print_fp
printfp,
43
const
ri_radio_modulation_t
modulation);
44
46
#endif
print_modulation
void print_modulation(const rd_test_print_fp printfp, const ri_radio_modulation_t modulation)
Print used modulation to printfp.
ri_communication_radio_run_integration_test
bool ri_communication_radio_run_integration_test(const rd_test_print_fp printfp)
ri_radio_modulation_t
ri_radio_modulation_t
type of radio modulation to be used.
Definition:
ruuvi_interface_communication_radio.h:40
rd_test_print_fp
void(* rd_test_print_fp)(const char *const msg)
function pointer to print test information
Definition:
ruuvi_driver_test.h:23
ruuvi_driver_error.h
Ruuvi error codes and error check function.
ruuvi_interface_communication.h
ruuvi_interface_communication_radio.h
src
integration_tests
ruuvi_interface_communication_radio_test.h
Generated by
1.9.1