ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_communication_ble_gatt_test.h
Go to the documentation of this file.
1 #ifndef RUUVI_INTERFACE_COMMUNICATION_BLE_GATT_TEST_H
2 #define RUUVI_INTERFACE_COMMUNICATION_BLE_GATT_TEST_H
3 #include "ruuvi_driver_error.h"
6 #include <stdbool.h>
7 
21 #define TEST_GATT_PACKET_LEN (20U)
22 #define TEST_GATT_PACKET_NUM (10000U)
23 
24 /*
25  * @brief Run BLE integration tests.
26  *
27  * Writing and reading requires external BLE device which connects to DUT
28  * and register to NUS TX notifications on all tested PHYs.
29  *
30  * @param[in] printfp Function pointer to which test JSON is sent.
31  * @retval true if error occured in test.
32  * @retval false if no errors occured.
33  * @warning This test requires external BLE Central device to connect.
34  */
36  const ri_radio_modulation_t modulation);
38 #endif
bool ri_communication_ble_gatt_run_integration_test(const rd_test_print_fp printfp, const ri_radio_modulation_t modulation)
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.