BNO08X Driver 0.1.0
API reference
Loading...
Searching...
No Matches
bno08x_spi_interface.hpp
Go to the documentation of this file.
1
7#ifndef BNO08X_SPI_INTERFACE_HPP
8#define BNO08X_SPI_INTERFACE_HPP
9
10#include <cstdint>
11
12namespace bno08x::spi {
13
20inline constexpr uint8_t kSpiMode = 3;
22inline constexpr bool kMsbFirst = true;
24inline constexpr uint32_t kMaxClockHz = 3'000'000;
27inline constexpr uint32_t kMinCsHighNs = 1'000;
29inline constexpr uint32_t kCsSetupNs = 100;
31inline constexpr uint32_t kCsHoldNs = 17;
33inline constexpr bool kContinuousWord = true;
36} // namespace bno08x::spi
37
38#endif // BNO08X_SPI_INTERFACE_HPP
constexpr bool kContinuousWord
One duplex transfer of any length per CS assertion: CS stays low for the whole transfer.
Definition bno08x_spi_interface.hpp:33
constexpr uint32_t kMinCsHighNs
Definition bno08x_spi_interface.hpp:27
constexpr uint8_t kSpiMode
SPI mode 3: SCK idles high, data is sampled on the second edge, DS p19.
Definition bno08x_spi_interface.hpp:20
constexpr uint32_t kCsSetupNs
CS low to the first clock edge, minimum (0.1 us as printed), DS p47.
Definition bno08x_spi_interface.hpp:29
constexpr bool kMsbFirst
Each byte is clocked most significant bit first.
Definition bno08x_spi_interface.hpp:22
constexpr uint32_t kCsHoldNs
The last clock edge to CS high, minimum (16.83 ns as printed), DS p47.
Definition bno08x_spi_interface.hpp:31