|
esp32_BNO08x 1.31
C++ BNO08x IMU driver component for esp-idf.
|
IMU configuration settings passed into constructor. More...
#include <BNO08xGlobalTypes.hpp>
Public Member Functions | |
| bno08x_config_t (bool install_isr_service=true) | |
| Default IMU configuration settings constructor. To modify default GPIO pins, run "idf.py menuconfig" esp32_BNO08x->GPIO Configuration. Alternatively, edit the default values in "Kconfig.projbuild". | |
| bno08x_config_t (spi_host_device_t spi_peripheral, gpio_num_t io_mosi, gpio_num_t io_miso, gpio_num_t io_sclk, gpio_num_t io_cs, gpio_num_t io_int, gpio_num_t io_rst, uint32_t sclk_speed, bool install_isr_service=true) | |
| Overloaded IMU configuration settings constructor for custom pin settings. | |
Public Attributes | |
| spi_host_device_t | spi_peripheral |
| SPI peripheral to be used. | |
| gpio_num_t | io_mosi |
| MOSI GPIO pin (connects to BNO08x DI pin) | |
| gpio_num_t | io_miso |
| MISO GPIO pin (connects to BNO08x SDA pin) | |
| gpio_num_t | io_sclk |
| SCLK pin (connects to BNO08x SCL pin) | |
| gpio_num_t | io_cs |
| gpio_num_t | io_int |
| Chip select pin (connects to BNO08x CS pin) | |
| gpio_num_t | io_rst |
| Host interrupt pin (connects to BNO08x INT pin) | |
| uint32_t | sclk_speed |
| Reset pin (connects to BNO08x RST pin) | |
| bool | install_isr_service |
| Indicates whether the ISR service for the HINT should be installed at IMU initialization, (if gpio_install_isr_service() is called before initialize() set this to false) | |
IMU configuration settings passed into constructor.
|
inline |
Default IMU configuration settings constructor. To modify default GPIO pins, run "idf.py menuconfig" esp32_BNO08x->GPIO Configuration. Alternatively, edit the default values in "Kconfig.projbuild".
|
inline |
Overloaded IMU configuration settings constructor for custom pin settings.
| bool bno08x_config_t::install_isr_service |
Indicates whether the ISR service for the HINT should be installed at IMU initialization, (if gpio_install_isr_service() is called before initialize() set this to false)
| gpio_num_t bno08x_config_t::io_cs |
| gpio_num_t bno08x_config_t::io_int |
Chip select pin (connects to BNO08x CS pin)
| gpio_num_t bno08x_config_t::io_miso |
MISO GPIO pin (connects to BNO08x SDA pin)
| gpio_num_t bno08x_config_t::io_mosi |
MOSI GPIO pin (connects to BNO08x DI pin)
| gpio_num_t bno08x_config_t::io_rst |
Host interrupt pin (connects to BNO08x INT pin)
| gpio_num_t bno08x_config_t::io_sclk |
SCLK pin (connects to BNO08x SCL pin)
| uint32_t bno08x_config_t::sclk_speed |
Reset pin (connects to BNO08x RST pin)
Desired SPI SCLK speed in Hz (max 3MHz)
| spi_host_device_t bno08x_config_t::spi_peripheral |
SPI peripheral to be used.