17#ifndef TMC9660_KCONFIG_HPP
18#define TMC9660_KCONFIG_HPP
21#if __has_include("sdkconfig.h")
28#ifndef CONFIG_TMC9660_DEVICE_ADDRESS
30#define CONFIG_TMC9660_DEVICE_ADDRESS 1
32#ifndef CONFIG_TMC9660_BOOT_TIMEOUT_MS
34#define CONFIG_TMC9660_BOOT_TIMEOUT_MS 500
46#ifdef CONFIG_TMC9660_MODE_BOOTLOADER
48#elif defined(CONFIG_TMC9660_MODE_REGISTER)
55#if defined(CONFIG_TMC9660_HARDWARE_RESET) && CONFIG_TMC9660_HARDWARE_RESET
56 c.hardware_reset =
true;
58#if defined(CONFIG_TMC9660_NO_UART_CANARY) && CONFIG_TMC9660_NO_UART_CANARY
59 c.uart_canary =
false;
@ Register
The application in register mode: direct register access.
@ Bootloader
The bootloader: GET_INFO, memory access, configuration.
@ Parameter
The application in parameter mode: TMCL commands.
The TMC9660 driver: everything it declares lives here; internals in detail.
Definition tmc9660.hpp:37
constexpr Config KconfigDefaults() noexcept
The configuration menuconfig selected, on top of the Config{} defaults.
Definition tmc9660_kconfig.hpp:44
Configuration of the driver. The defaults are the chip's.
Definition tmc9660_types.hpp:461
Mode mode
The protocol the chip is in at EnsureInitialized().
Definition tmc9660_types.hpp:462
#define CONFIG_TMC9660_BOOT_TIMEOUT_MS
Definition tmc9660_kconfig.hpp:34
#define CONFIG_TMC9660_DEVICE_ADDRESS
Definition tmc9660_kconfig.hpp:30
Public types of the TMC9660 driver: errors, Result<T>, the protocol enumerations, Config and its mode...