11#ifndef CANOPEN_CLIENT_KCONFIG_HPP
12#define CANOPEN_CLIENT_KCONFIG_HPP
15#if __has_include("sdkconfig.h")
22#ifndef CONFIG_CANOPEN_CLIENT_SDO_TIMEOUT_MS
24#define CONFIG_CANOPEN_CLIENT_SDO_TIMEOUT_MS 200
26#ifndef CONFIG_CANOPEN_CLIENT_GUARD_TIMEOUT_MS
28#define CONFIG_CANOPEN_CLIENT_GUARD_TIMEOUT_MS 100
30#ifndef CONFIG_CANOPEN_CLIENT_DRIVE_TIMEOUT_MS
32#define CONFIG_CANOPEN_CLIENT_DRIVE_TIMEOUT_MS 2000
34#ifndef CONFIG_CANOPEN_CLIENT_DRIVE_POLL_INTERVAL_MS
36#define CONFIG_CANOPEN_CLIENT_DRIVE_POLL_INTERVAL_MS 10
38#ifndef CONFIG_CANOPEN_CLIENT_SAFETY_ATTEMPTS
40#define CONFIG_CANOPEN_CLIENT_SAFETY_ATTEMPTS 3
59 c.drive_poll_interval_us =
62#ifdef CONFIG_CANOPEN_CLIENT
63#ifdef CONFIG_CANOPEN_CLIENT_ABORT_ON_TIMEOUT
64 c.abort_on_timeout =
true;
66 c.abort_on_timeout =
false;
68#ifdef CONFIG_CANOPEN_CLIENT_STRICT_SDO_LENGTH
69 c.strict_sdo_length =
true;
71 c.strict_sdo_length =
false;
#define CONFIG_CANOPEN_CLIENT_DRIVE_POLL_INTERVAL_MS
Definition canopen_client_kconfig.hpp:36
#define CONFIG_CANOPEN_CLIENT_SAFETY_ATTEMPTS
Definition canopen_client_kconfig.hpp:40
#define CONFIG_CANOPEN_CLIENT_GUARD_TIMEOUT_MS
Definition canopen_client_kconfig.hpp:28
#define CONFIG_CANOPEN_CLIENT_DRIVE_TIMEOUT_MS
Definition canopen_client_kconfig.hpp:32
#define CONFIG_CANOPEN_CLIENT_SDO_TIMEOUT_MS
Definition canopen_client_kconfig.hpp:24
Public types of the CANopen client driver: errors, Result<T>, the CAN frame, the protocol vocabulary ...
The CANopen client driver: everything it declares lives here; internals in detail.
Definition canopen_client.hpp:28
constexpr Config KconfigDefaults() noexcept
The configuration menuconfig selected, on top of the defaults.
Definition canopen_client_kconfig.hpp:54
Everything the client uses; the defaults suit a node on a 500 kbit/s bus.
Definition canopen_client_types.hpp:580
uint32_t sdo_timeout_us
Wait for each SDO reply, 1 ms to 60 s.
Definition canopen_client_types.hpp:581