HF-AS5047U Driver  0.1.0-dev
HF-AS5047U C++ Driver
Loading...
Searching...
No Matches
as5047u_config.hpp
Go to the documentation of this file.
1
6#pragma once
7#include <cstdint>
8
9#include "as5047u_types.hpp" // For FrameFormat enum
10
11// This header provides default configuration values for the AS5047U driver.
12// It can be generated from a Kconfig system or edited manually.
13
14namespace AS5047U_CFG {
15#ifdef CONFIG_AS5047U_FRAME_32
17#elif defined(CONFIG_AS5047U_FRAME_24)
19#else
21#endif
22
23#ifdef CONFIG_AS5047U_CRC_RETRIES
24inline constexpr uint8_t CRC_RETRIES = CONFIG_AS5047U_CRC_RETRIES;
25#else
26inline constexpr uint8_t CRC_RETRIES = 0;
27#endif
28} // namespace AS5047U_CFG
Type definitions for the AS5047U driver.
FrameFormat
Supported SPI frame formats for AS5047U communication.
Definition as5047u_types.hpp:12
Definition as5047u_config.hpp:14
constexpr FrameFormat DEFAULT_FRAME_FORMAT
Definition as5047u_config.hpp:20
constexpr uint8_t CRC_RETRIES
Definition as5047u_config.hpp:26