1 #ifndef RUUVI_INTERFACE_GPIO_TEST_H
2 #define RUUVI_INTERFACE_GPIO_TEST_H
uint32_t rd_status_t
bitfield for representing errors
rd_status_t ri_gpio_test_configure(const ri_gpio_id_t input, const ri_gpio_id_t output)
Test configuring a pin of a port into a mode.
bool ri_gpio_run_integration_test(const rd_test_print_fp printfp, const ri_gpio_id_t input, const ri_gpio_id_t output)
Run all GPIO integration tests.
rd_status_t ri_gpio_test_init(void)
Test GPIO module initialization.
rd_status_t ri_gpio_test_toggle(const ri_gpio_id_t input, const ri_gpio_id_t output)
Test toggling the state of a pin of a port.
void(* rd_test_print_fp)(const char *const msg)
function pointer to print test information
Ruuvi error codes and error check function.
Functions for testing drivers.
uint16_t ri_gpio_id_t
port<<8 + pin
structure to configure GPIO test with input and output. These GPIOs must be physically connected on b...
ri_gpio_id_t input
Input pin used in test. Must be interrupt-capable.
ri_gpio_id_t output
Output pin used in test. Must be PWM-capable.