31 printfp (
"\"init\":");
63 printfp (
"\"fail\",\r\n");
67 printfp (
"\"pass\",\r\n");
88 const uint64_t addr_set = 0xCFEDAABBCCDDU;
89 uint64_t addr_old = 0;
90 uint64_t addr_new = 0;
91 printfp (
"\"address_set_get\":");
105 || (addr_set != addr_new)
106 || (addr_old == addr_new))
114 printfp (
"\"fail\"\r\n");
118 printfp (
"\"pass\"\r\n");
153 printfp (
"\"radio\":{\r\n");
154 status |= ri_radio_init_test (printfp);
155 status |= ri_radio_address_test (printfp);
uint32_t rd_status_t
bitfield for representing errors
#define RD_SUCCESS
Internal Error.
#define RD_ERROR_INVALID_STATE
Invalid state, operation disallowed in this state.
void print_modulation(const rd_test_print_fp printfp, const ri_radio_modulation_t modulation)
Print used modulation to printfp.
rd_status_t ri_radio_get_modulation(ri_radio_modulation_t *const p_modulation)
Get the modulation used by application.
bool ri_communication_radio_run_integration_test(const rd_test_print_fp printfp)
bool ri_radio_is_init()
Check if radio is initialized.
rd_status_t ri_radio_init(const ri_radio_modulation_t modulation)
Enable radio stack for an user. This function also starts radio activity callbacks internally.
rd_status_t ri_radio_uninit()
Release radio stack.
rd_status_t ri_radio_address_get(uint64_t *const address)
ri_radio_modulation_t
type of radio modulation to be used.
rd_status_t ri_radio_address_set(uint64_t const address)
@ RI_RADIO_BLE_1MBPS
"Normal" BLE 4 modulation
@ RI_RADIO_BLE_2MBPS
"Fast BLE". Advertising uses 1MBPS primary advertisement followed by 2 MBit/s extended advertisement.
@ RI_RADIO_BLE_125KBPS
Also known as BLE Long Range S=8.
void(* rd_test_print_fp)(const char *const msg)
function pointer to print test information
Header to enable and disable module compilation.
Ruuvi error codes and error check function.
Functions for testing drivers.