ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_gpio_interrupt_test.h
Go to the documentation of this file.
1 #ifndef RUUVI_INTERFACE_GPIO_INTERRUPT_TEST_H
2 #define RUUVI_INTERFACE_GPIO_INTERRUPT_TEST_H
15 #include "ruuvi_driver_error.h"
16 #include "ruuvi_interface_gpio.h"
19 
21 #define RI_GPIO_INTERRUPT_TEST_TABLE_SIZE 64
22 
36  const rd_test_gpio_cfg_t cfg);
37 
61 
72  const ri_gpio_id_t input, const ri_gpio_id_t output);
73 
75 #endif
uint32_t rd_status_t
bitfield for representing errors
rd_status_t ri_gpio_interrupt_test_init(const rd_test_gpio_cfg_t cfg)
Test GPIO interrupt initialization.
rd_status_t ri_gpio_interrupt_test_enable(const rd_test_gpio_cfg_t cfg)
Test enabling interrupt on a pin.
bool ri_gpio_interrupt_run_integration_test(const rd_test_print_fp printfp, const ri_gpio_id_t input, const ri_gpio_id_t output)
Run all GPIO interrupt integration tests.
void(* rd_test_print_fp)(const char *const msg)
function pointer to print test information
Ruuvi error codes and error check function.
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...