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
"
4
#include "
ruuvi_interface_communication_radio.h
"
5
#include "
ruuvi_interface_communication.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
*/
35
bool
ri_communication_ble_gatt_run_integration_test
(
const
rd_test_print_fp
printfp,
36
const
ri_radio_modulation_t
modulation);
38
#endif
ri_communication_ble_gatt_run_integration_test
bool ri_communication_ble_gatt_run_integration_test(const rd_test_print_fp printfp, const ri_radio_modulation_t modulation)
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_ble_gatt_test.h
Generated by
1.9.1