22 static const constexpr char*
TAG =
"BNO08xTestHelper";
34 printf(
"------------------------ BEGIN TEST: %s ------------------------\n\r", TEST_TAG);
46 printf(
"------------------------ END TEST: %s ------------------------\n\r", TEST_TAG);
59 printf(
"%s: %s: %s\n\r",
TAG, TEST_TAG, msg);
BNO08x IMU driver class.
Definition BNO08x.hpp:33
esp_err_t deinit_spi()
Deinitializes SPI.
Definition BNO08x.cpp:931
esp_err_t deinit_gpio()
Deinitializes GPIO, called from deconstructor.
Definition BNO08x.cpp:805
esp_err_t init_config_args()
Initializes required esp-idf SPI data structures with values from user passed bno08x_config_t struct.
Definition BNO08x.cpp:390
esp_err_t init_spi()
Initializes SPI.
Definition BNO08x.cpp:702
esp_err_t deinit_sh2_HAL()
Deinitializes sh2 HAL.
Definition BNO08x.cpp:1030
esp_err_t init_tasks()
Initializes data_proc_task.
Definition BNO08x.cpp:632
esp_err_t deinit_tasks()
Deinitializes tasks used by BNO08x driver.
Definition BNO08x.cpp:977
esp_err_t deinit_hint_isr()
Deinitializes host interrupt ISR, called from deconstructor.
Definition BNO08x.cpp:893
esp_err_t init_hint_isr()
Initializes host interrupt ISR.
Definition BNO08x.cpp:583
esp_err_t init_gpio()
Initializes required gpio.
Definition BNO08x.cpp:558
esp_err_t init_sh2_HAL()
Initializes sh2 HAL.
Definition BNO08x.cpp:747
BNO08x unit test helper class.
Definition BNO08xTestHelper.hpp:17
static bno08x_config_t imu_cfg
Definition BNO08xTestHelper.hpp:20
static void print_test_start_banner(const char *TEST_TAG)
Prints test begin banner.
Definition BNO08xTestHelper.hpp:32
static void print_test_end_banner(const char *TEST_TAG)
Prints end begin banner.
Definition BNO08xTestHelper.hpp:44
static void print_test_msg(const char *TEST_TAG, const char *msg)
Prints a message during a test.
Definition BNO08xTestHelper.hpp:57
static BNO08x * test_imu
Definition BNO08xTestHelper.hpp:19
static esp_err_t call_deinit_gpio()
Used to call private BNO08x::deinit_gpio() member for tests.
Definition BNO08xTestHelper.hpp:194
static esp_err_t call_deinit_tasks()
Used to call private BNO08x::deinit_tasks() member for tests.
Definition BNO08xTestHelper.hpp:233
static BNO08x * get_test_imu()
Deletes test IMU calling deconstructor and releases heap allocated memory.
Definition BNO08xTestHelper.hpp:106
static esp_err_t call_init_gpio()
Used to call private BNO08x::init_gpio() member for tests.
Definition BNO08xTestHelper.hpp:129
static esp_err_t call_deinit_spi()
Used to call private BNO08x::deinit_spi() member for tests.
Definition BNO08xTestHelper.hpp:220
static void create_test_imu()
Calls BNO08x constructor and creates new test IMU on heap.
Definition BNO08xTestHelper.hpp:79
static esp_err_t call_init_config_args()
Used to call private BNO08x::init_config_args() member for tests.
Definition BNO08xTestHelper.hpp:116
static esp_err_t call_init_spi()
Used to call private BNO08x::init_spi() member for tests.
Definition BNO08xTestHelper.hpp:155
static esp_err_t call_init_hint_isr()
Used to call private BNO08x::init_hint_isr() member for tests.
Definition BNO08xTestHelper.hpp:142
static esp_err_t call_init_sh2_HAL()
Used to call private BNO08x::init_tasks() member for tests.
Definition BNO08xTestHelper.hpp:181
static esp_err_t call_init_tasks()
Used to call private BNO08x::init_tasks() member for tests.
Definition BNO08xTestHelper.hpp:168
static void set_test_imu_cfg(bno08x_config_t cfg)
Set test imu configuration used with create_test_imu()
Definition BNO08xTestHelper.hpp:69
static const constexpr char * TAG
Definition BNO08xTestHelper.hpp:22
static esp_err_t call_deinit_sh2_HAL()
Used to call private BNO08x::deinit_tasks() member for tests.
Definition BNO08xTestHelper.hpp:246
static esp_err_t call_deinit_hint_isr()
Used to call private BNO08x::deinit_hint_isr() member for tests.
Definition BNO08xTestHelper.hpp:207
static void destroy_test_imu()
Deletes test IMU calling deconstructor and releases heap allocated memory.
Definition BNO08xTestHelper.hpp:92
IMU configuration settings passed into constructor.
Definition BNO08xGlobalTypes.hpp:38