ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::canopen::CANopenComponent Class Reference

#include <canopen.h>

Inheritance diagram for esphome::canopen::CANopenComponent:
esphome::Component

Data Structures

struct  LocalFrame
 
struct  PendingNodeEvent
 
struct  SDORequest
 

Public Member Functions

 CANopenComponent (canbus::Canbus *canbus, uint8_t node_id)
 
bool is_client_only () const
 
void setup () override
 
void loop () override
 
void dump_config () override
 
float get_setup_priority () const override
 
void set_next_local (CANopenComponent *next)
 
void set_heartbeat_interval (uint16_t ms)
 
void set_start_operational (bool operational)
 
void set_response_timeout (uint16_t ms)
 
NMTState get_nmt_state () const
 
template<typename F >
void add_on_nmt_state_callback (F &&callback)
 
NMTState get_nmt_state () const
 
bool set_nmt_state (NMTState state)
 
bool transmit (uint16_t ident, const uint8_t *data, uint8_t len)
 
bool flush_held () const
 
void set_identity (uint32_t vendor_id, uint32_t product_code, uint32_t revision_number, uint32_t serial_number)
 
void set_device_name (const char *name)
 
void set_hardware_version (const char *version)
 
void set_software_version (const char *version)
 
ObjectDictionary & get_od ()
 
OdResult write_od (uint16_t index, uint8_t sub, const void *data, size_t len)
 
OdResult read_od (uint16_t index, uint8_t sub, void *data, size_t max_len, size_t *len)
 
template<typename F >
void add_on_node_event_callback (F &&callback)
 
 SLOT_LIST_REQUIRES (ESPHOME_CANOPEN_HEARTBEAT_CLIENTS) void monitor_node(uint8_t node_id
 
NMTState get_node_state (uint8_t node_id)
 
bool is_node_online (uint8_t node_id)
 
NMTState get_node_state (uint8_t)
 
bool is_node_online (uint8_t)
 
template<typename F >
void add_on_heartbeat_callback (F &&callback)
 
template<typename F >
void add_on_emcy_callback (F &&callback)
 
void add_frame_listener (FrameListener &listener)
 
bool send_frame (uint32_t can_id, const uint8_t *data, size_t len)
 
bool read_sdo (uint8_t node_id, uint16_t index, uint8_t sub, uint8_t expected_size, SDOCallback callback, void *context)
 
template<typename T >
bool read_sdo (uint8_t node_id, uint16_t index, uint8_t sub, SDOCallback callback, void *context)
 
bool write_sdo (uint8_t node_id, uint16_t index, uint8_t sub, uint32_t value, uint8_t size, SDOCallback callback=nullptr, void *context=nullptr)
 
template<typename T >
bool write_sdo (uint8_t node_id, uint16_t index, uint8_t sub, T value, SDOCallback callback=nullptr, void *context=nullptr)
 
bool read_sdo_data (uint8_t node_id, uint16_t index, uint8_t sub, uint8_t *data, size_t capacity, SDOCallback callback, void *context)
 
bool write_sdo_data (uint8_t node_id, uint16_t index, uint8_t sub, const uint8_t *data, size_t len, SDOCallback callback=nullptr, void *context=nullptr)
 
void cancel_sdo (void *context)
 
bool send_nmt (uint8_t node_id, NMTCommand command)
 
bool configure_tpdo (uint8_t n, uint32_t cob_id, std::initializer_list< PdoMapping > mappings, uint16_t event_timer_ms=0, uint16_t inhibit_time_100us=0, uint8_t transmission_type=254)
 
bool configure_rpdo (uint8_t n, uint32_t cob_id, std::initializer_list< PdoMapping > mappings, uint16_t event_timer_ms=0, uint8_t transmission_type=254)
 
bool request_tpdo (uint8_t n)
 
bool request_tpdo (uint16_t index, uint8_t sub)
 
void set_pdo_table (PdoParams *pdos, uint8_t rpdo_count, uint8_t tpdo_count)
 
void set_pdo_storage_key (uint32_t key)
 
- Public Member Functions inherited from esphome::Component
float get_actual_setup_priority () const
 
void set_setup_priority (float priority)
 
void call ()
 
virtual void on_shutdown ()
 
virtual void on_safe_shutdown ()
 
virtual bool teardown ()
 Called during teardown to allow component to gracefully finish operations.
 
virtual void on_powerdown ()
 Called last before a reboot or deep sleep to power down hardware.
 
uint8_t get_component_state () const
 
void reset_to_construction_state ()
 Reset this component back to the construction state to allow setup to run again.
 
bool is_in_loop_state () const
 Check if this component has completed setup and is in the loop state.
 
bool is_idle () const
 Check if this component is idle.
 
void mark_failed ()
 Mark this component as failed.
 
void mark_failed (const LogString *message)
 
bool ESPHOME_ALWAYS_INLINE setup_check (bool ok)
 Marks the component failed with message (default "Communication failed") unless ok; returns ok.
 
bool ESPHOME_ALWAYS_INLINE setup_check (bool ok, const LogString *message)
 
void disable_loop ()
 Disable this component's loop.
 
void enable_loop ()
 Enable this component's loop.
 
void enable_loop_soon_any_context ()
 Thread and ISR-safe version of enable_loop() that can be called from any context.
 
bool is_failed () const
 
bool is_ready () const
 
virtual bool can_proceed ()
 
bool status_has_warning () const
 
bool status_has_error () const
 
void status_set_warning ()
 
void status_set_warning (const char *message)
 
void status_set_warning (const LogString *message)
 
bool status_comm_result (bool ok)
 Clears the warning when ok, else sets it with message (default "Communication failed"); returns ok.
 
bool status_comm_result (bool ok, const LogString *message)
 
bool status_comm_check (bool ok)
 Sets the warning ("Communication failed") when not ok but never clears it; returns ok.
 
void status_set_error ()
 
void status_set_error (const LogString *message)
 
void status_clear_warning ()
 
void status_clear_error ()
 
 ESPDEPRECATED ("Use status_momentary_warning() without a name. Removed in 2027.5.0", "2026.11.0") void status_momentary_warning(const char *name
 
void status_momentary_warning (uint32_t length=5000)
 Set warning status flag and clear it after length ms.
 
void status_momentary_warning (const LogString *message, uint32_t length=5000)
 
 ESPDEPRECATED ("Use status_momentary_error() without a name. Removed in 2027.5.0", "2026.11.0") void status_momentary_error(const char *name
 
void status_momentary_error (uint32_t length=5000)
 Set error status flag and clear it after length ms.
 
void status_momentary_error (const LogString *message, uint32_t length=5000)
 
bool has_overridden_loop () const
 
const LogString * get_component_log_str () const ESPHOME_ALWAYS_INLINE
 Get the integration where this component was declared as a LogString for logging.
 
bool should_warn_of_blocking (uint32_t blocking_time, uint32_t &threshold_ms_out)
 

Data Fields

uint16_t timeout_ms { this->monitor_node_(node_id, timeout_ms)
 
- Data Fields inherited from esphome::Component
uint32_t length = 5000)
 

Static Public Attributes

static constexpr uint8_t NO_NODE_ID = 0
 

Protected Types

enum class  SDOKind : uint8_t { SDO_KIND_READ , SDO_KIND_WRITE , SDO_KIND_READ_DATA , SDO_KIND_WRITE_DATA }
 

Protected Member Functions

void on_frame_ (const canbus::CanFrame &frame)
 
void handle_frame_ (uint16_t ident, const uint8_t *data, uint8_t len)
 
bool receive_ (uint16_t ident, const uint8_t *data, uint8_t len)
 Returns whether a CANopenNode object took the frame.
 
void queue_local_ (uint16_t ident, const uint8_t *data, uint8_t len)
 
void deliver_local_ ()
 
void stage_bus_frame_ (uint16_t ident, const uint8_t *data, uint8_t len)
 
bool idle_ () const
 
void process_node_ ()
 
void send_upload_block_ ()
 
bool local_queues_busy_ () const
 
void apply_nmt_command_ ()
 
bool nmt_command_pending_ () const
 
void fail_setup_ (const LogString *reason)
 
void set_device_info_defaults_ ()
 
void add_device_info_od_ ()
 
void config_device_info_ (CO_config_t &cfg)
 
void dump_device_info_config_ ()
 
void node_event_ (uint8_t node_id, NodeEvent event, NMTState state)
 
void monitor_node_ (uint8_t node_id, uint16_t timeout_ms)
 
void add_node_monitor_od_ ()
 
void config_node_monitor_ (CO_config_t &cfg)
 
void init_node_monitor_ ()
 
void process_node_monitor_ (uint32_t dt_us)
 
void dump_node_monitor_config_ ()
 
void dispatch_node_events_ ()
 
void dispatch_frame_ (const CO_CANrxMsg_t &msg)
 
void check_frame_listener_ (uint16_t can_id, uint16_t mask)
 
bool sdo_idle_ () const
 
void add_sdo_client_od_ ()
 
void config_sdo_client_ (CO_config_t &cfg)
 
bool init_sdo_client_ ()
 
bool queue_sdo_ (const SDORequest &request)
 
void reject_queued_sdo_ ()
 
bool sdo_stopped_ () const
 
bool sdo_is_local_ () const
 
void stop_sdo_ ()
 
bool sdo_reply_is_stale_ (const uint8_t *data, uint8_t len) const
 
void process_sdo_ (uint32_t dt_us)
 
bool drain_upload_ (uint32_t dt_us, CO_SDO_return_t &ret, CO_SDO_abortCode_t &abort)
 
CO_SDO_return_t start_sdo_ ()
 
void finish_sdo_ (SDOResult result, uint32_t abort_code)
 
void abort_sdo_ ()
 
void process_sdo_abort_ (uint32_t dt_us)
 
void add_pdo_od_ ()
 
void config_pdo_ (CO_config_t &cfg)
 
bool init_pdo_ ()
 
void log_invalid_pdos_ ()
 
void process_pdo_ (uint32_t dt_us)
 
bool configure_pdo_ (bool tpdo, uint8_t n, uint32_t cob_id, std::initializer_list< PdoMapping > mappings, uint16_t event_timer_ms, uint16_t inhibit_time_100us, uint8_t transmission_type)
 
void discard_pending_tpdos_ ()
 
size_t pdo_count_ () const
 
bool has_pdos_ () const
 
void add_pdo_storage_od_ ()
 
bool init_pdo_storage_ ()
 
void load_pdos_ ()
 
bool store_pdos_ ()
 
bool restore_pdo_defaults_ ()
 
- Protected Member Functions inherited from esphome::Component
friend void::setup ()
 
friend void::original_setup ()
 
void set_component_source_ (uint8_t index)
 Set where this component was loaded from for some debug messages.
 
virtual void call_setup ()
 
void call_dump_config_ ()
 
void enable_loop_slow_path_ ()
 
void set_component_state_ (uint8_t state)
 Helper to set component state (clears state bits and sets new state)
 
bool set_status_flag_ (uint8_t flag)
 Helper to set a status LED flag on both this component and the app.
 
bool set_error_flag_ (const LogString *message)
 Set the error flag and log it; true when it was not set before.
 
void set_interval (const char *name, uint32_t interval, SchedulerCallback &&f)
 Set an interval function with a const char* name.
 
void set_interval (uint32_t id, uint32_t interval, SchedulerCallback &&f)
 Set an interval function with a numeric ID (zero heap allocation).
 
void set_interval (InternalSchedulerID id, uint32_t interval, SchedulerCallback &&f)
 
void set_interval (uint32_t interval, SchedulerCallback &&f)
 
bool cancel_interval (const char *name)
 Cancel an interval function.
 
bool cancel_interval (uint32_t id)
 
bool cancel_interval (InternalSchedulerID id)
 
void set_timeout (const char *name, uint32_t timeout, SchedulerCallback &&f)
 Set a timeout function with a const char* name.
 
void set_timeout (uint32_t id, uint32_t timeout, SchedulerCallback &&f)
 Set a timeout function with a numeric ID (zero heap allocation).
 
void set_timeout (InternalSchedulerID id, uint32_t timeout, SchedulerCallback &&f)
 
void set_timeout (uint32_t timeout, SchedulerCallback &&f)
 
bool cancel_timeout (const char *name)
 Cancel a timeout function.
 
bool cancel_timeout (uint32_t id)
 
bool cancel_timeout (InternalSchedulerID id)
 
void defer (const char *name, SchedulerCallback &&f)
 Defer a callback to the next loop() call with a const char* name.
 
void defer (SchedulerCallback &&f)
 Defer a callback to the next loop() call.
 
void defer (uint32_t id, SchedulerCallback &&f)
 Defer a callback with a numeric ID (zero heap allocation)
 
bool cancel_defer (const char *name)
 Cancel a defer callback using the specified name, name must not be empty.
 
bool cancel_defer (uint32_t id)
 
void status_clear_warning_slow_path_ ()
 
void status_comm_check_slow_path_ ()
 
void status_clear_error_slow_path_ ()
 

Static Protected Member Functions

static void on_hb_started (uint8_t node_id, uint8_t idx, void *object)
 
static void on_hb_nmt_changed (uint8_t node_id, uint8_t idx, CO_NMT_internalState_t state, void *object)
 
static void on_hb_timeout (uint8_t node_id, uint8_t idx, void *object)
 
static void on_hb_remote_reset (uint8_t node_id, uint8_t idx, void *object)
 
static void push_node_event (void *object, uint8_t node_id, NodeEvent event, NMTState state)
 
static ODR_t storage_store (CO_storage_entry_t *entry, CO_CANmodule_t *module)
 
static ODR_t storage_restore (CO_storage_entry_t *entry, CO_CANmodule_t *module)
 

Protected Attributes

canbus::Canbus * canbus_
 
CO_t * co_ {nullptr}
 
CO_config_t config_ {}
 
ObjectDictionary od_
 
uint16_t response_timeout_ms_ {500}
 
uint8_t node_id_
 
bool hold_flush_ {false}
 
CANopenComponent * next_local_ {nullptr}
 
FixedRingBuffer< LocalFrame, LOCAL_QUEUE_SIZE > local_queue_
 
uint16_t local_dropped_ {0}
 
bool bus_frame_staged_ {false}
 
LazyCallbackManager< void(NMTState)> nmt_state_callback_
 
uint32_t cob_emcy_ {0x80}
 
uint32_t last_us_ {0}
 
uint32_t reset_deadline_ms_ {0}
 
uint32_t dev_type_ {0}
 
const char * device_name_ {nullptr}
 
const char * hardware_version_ {nullptr}
 
const char * software_version_ {nullptr}
 
std::array< uint32_t, 4 > identity_ {}
 
uint32_t sdo_srv_cob_rx_ {0}
 
uint32_t sdo_srv_cob_tx_ {0}
 
uint16_t hb_producer_ms_ {5000}
 
uint8_t err_reg_ {0}
 
uint8_t identity_highest_sub_ {4}
 
uint8_t sdo_srv_highest_sub_ {2}
 
NMTState nmt_state_ {NMTState::NMT_STATE_UNKNOWN}
 
bool start_operational_ {true}
 
bool reset_pending_ {false}
 
bool processing_ {false}
 
bool nmt_sending_ {false}
 
uint8_t hb_cons_count_ {0}
 
LazyCallbackManager< void(uint8_t, NodeEvent, NMTState)> node_event_callback_
 
StaticVector< PendingNodeEvent, 2 *ESPHOME_CANOPEN_HEARTBEAT_CLIENTS > pending_node_events_
 
SlotList< uint32_t, ESPHOME_CANOPEN_HEARTBEAT_CLIENTS > hb_cons_
 
FrameListener * frame_listeners_ {nullptr}
 
CallbackManager< void(uint8_t, NMTState)> heartbeat_callback_
 
CallbackManager< void(uint8_t, const Emergency &)> emcy_callback_
 
StaticRingBuffer< SDORequest, SDO_QUEUE_SIZE > sdo_queue_
 
SDORequest sdo_active_ {}
 
size_t sdo_len_ {0}
 
uint32_t sdo_last_ms_ {0}
 
uint32_t sdo_abort_guard_us_ {0}
 
uint32_t sdo_cli_cob_tx_ {0x80000000}
 
uint32_t sdo_cli_cob_rx_ {0x80000000}
 
std::array< uint8_t, 4 > sdo_rx_value_ {}
 
uint8_t sdo_cli_highest_sub_ {3}
 
uint8_t sdo_cli_node_ {0}
 
bool sdo_busy_ {false}
 
bool sdo_abort_pending_ {false}
 
bool sdo_cancel_pending_ {false}
 
PdoParams * pdos_ {nullptr}
 
uint8_t rpdo_count_ {0}
 
uint8_t tpdo_count_ {0}
 
bool pdo_not_reserved_ {false}
 
CO_storage_t storage_ {}
 
CO_storage_entry_t storage_entry_ {}
 
ESPPreferenceObject pdo_pref_
 
ESPPreferenceObject pdo_valid_pref_
 
uint32_t pdo_fingerprint_ {0}
 
- Protected Attributes inherited from esphome::Component
uint8_t component_source_index_ {0}
 Index into component source PROGMEM lookup table (0 = not set)
 
uint8_t warn_if_blocking_over_ {WARN_IF_BLOCKING_OVER_CS}
 Warn threshold in centiseconds (max 2550ms)
 
uint8_t component_state_ {0x00}
 State of this component - each bit has a purpose: Bits 0-2: Component state (0x00=CONSTRUCTION, 0x01=SETUP, 0x02=LOOP, 0x03=FAILED, 0x04=LOOP_DONE) Bit 3: STATUS_LED_WARNING Bit 4: STATUS_LED_ERROR Bit 5: Has overridden loop() (set at registration time) Bits 6-7: Unused - reserved for future expansion.
 
volatile bool pending_enable_loop_ {false}
 ISR-safe flag for enable_loop_soon_any_context.
 
ComponentRuntimeStats runtime_stats_
 

Static Protected Attributes

static constexpr uint8_t LOCAL_QUEUE_SIZE = 16
 
static constexpr uint32_t UPLOAD_BURST_US = 10000
 
static constexpr size_t SDO_QUEUE_SIZE = 16
 

Detailed Description

Definition at line 62 of file canopen.h.

Member Enumeration Documentation

◆ SDOKind

enum class esphome::canopen::CANopenComponent::SDOKind : uint8_t
strongprotected
Enumerator
SDO_KIND_READ 
SDO_KIND_WRITE 
SDO_KIND_READ_DATA 
SDO_KIND_WRITE_DATA 

Definition at line 412 of file canopen.h.

Constructor & Destructor Documentation

◆ CANopenComponent()

esphome::canopen::CANopenComponent::CANopenComponent ( canbus::Canbus * canbus,
uint8_t node_id )
inline

Definition at line 68 of file canopen.h.

Member Function Documentation

◆ abort_sdo_()

void esphome::canopen::CANopenComponent::abort_sdo_ ( )
protected

Definition at line 387 of file sdo_client.cpp.

◆ add_device_info_od_()

void esphome::canopen::CANopenComponent::add_device_info_od_ ( )
protected

Definition at line 22 of file device_info.cpp.

◆ add_frame_listener()

void esphome::canopen::CANopenComponent::add_frame_listener ( FrameListener & listener)

Definition at line 10 of file frames.cpp.

◆ add_node_monitor_od_()

void esphome::canopen::CANopenComponent::add_node_monitor_od_ ( )
protected

Definition at line 63 of file node_monitor.cpp.

◆ add_on_emcy_callback()

template<typename F >
void esphome::canopen::CANopenComponent::add_on_emcy_callback ( F && callback)
inline

Definition at line 170 of file canopen.h.

◆ add_on_heartbeat_callback()

template<typename F >
void esphome::canopen::CANopenComponent::add_on_heartbeat_callback ( F && callback)
inline

Definition at line 165 of file canopen.h.

◆ add_on_nmt_state_callback()

template<typename F >
void esphome::canopen::CANopenComponent::add_on_nmt_state_callback ( F && callback)
inline

Definition at line 96 of file canopen.h.

◆ add_on_node_event_callback()

template<typename F >
void esphome::canopen::CANopenComponent::add_on_node_event_callback ( F && callback)
inline

Definition at line 143 of file canopen.h.

◆ add_pdo_od_()

void esphome::canopen::CANopenComponent::add_pdo_od_ ( )
protected

Definition at line 75 of file pdo.cpp.

◆ add_pdo_storage_od_()

void esphome::canopen::CANopenComponent::add_pdo_storage_od_ ( )
protected

Definition at line 21 of file pdo_storage.cpp.

◆ add_sdo_client_od_()

void esphome::canopen::CANopenComponent::add_sdo_client_od_ ( )
protected

Definition at line 26 of file sdo_client.cpp.

◆ apply_nmt_command_()

void esphome::canopen::CANopenComponent::apply_nmt_command_ ( )
protected

Definition at line 356 of file canopen.cpp.

◆ cancel_sdo()

void esphome::canopen::CANopenComponent::cancel_sdo ( void * context)

Definition at line 155 of file sdo_client.cpp.

◆ check_frame_listener_()

void esphome::canopen::CANopenComponent::check_frame_listener_ ( uint16_t can_id,
uint16_t mask )
protected

Definition at line 30 of file frames.cpp.

◆ config_device_info_()

void esphome::canopen::CANopenComponent::config_device_info_ ( CO_config_t & cfg)
protected

Definition at line 40 of file device_info.cpp.

◆ config_node_monitor_()

void esphome::canopen::CANopenComponent::config_node_monitor_ ( CO_config_t & cfg)
protected

Definition at line 74 of file node_monitor.cpp.

◆ config_pdo_()

void esphome::canopen::CANopenComponent::config_pdo_ ( CO_config_t & cfg)
protected

Definition at line 95 of file pdo.cpp.

◆ config_sdo_client_()

void esphome::canopen::CANopenComponent::config_sdo_client_ ( CO_config_t & cfg)
protected

Definition at line 35 of file sdo_client.cpp.

◆ configure_pdo_()

bool esphome::canopen::CANopenComponent::configure_pdo_ ( bool tpdo,
uint8_t n,
uint32_t cob_id,
std::initializer_list< PdoMapping > mappings,
uint16_t event_timer_ms,
uint16_t inhibit_time_100us,
uint8_t transmission_type )
protected

Definition at line 27 of file pdo.cpp.

◆ configure_rpdo()

bool esphome::canopen::CANopenComponent::configure_rpdo ( uint8_t n,
uint32_t cob_id,
std::initializer_list< PdoMapping > mappings,
uint16_t event_timer_ms = 0,
uint8_t transmission_type = 254 )

Definition at line 22 of file pdo.cpp.

◆ configure_tpdo()

bool esphome::canopen::CANopenComponent::configure_tpdo ( uint8_t n,
uint32_t cob_id,
std::initializer_list< PdoMapping > mappings,
uint16_t event_timer_ms = 0,
uint16_t inhibit_time_100us = 0,
uint8_t transmission_type = 254 )

Definition at line 17 of file pdo.cpp.

◆ deliver_local_()

void esphome::canopen::CANopenComponent::deliver_local_ ( )
protected

Definition at line 142 of file driver_can.cpp.

◆ discard_pending_tpdos_()

void esphome::canopen::CANopenComponent::discard_pending_tpdos_ ( )
protected

Definition at line 64 of file pdo.cpp.

◆ dispatch_frame_()

void esphome::canopen::CANopenComponent::dispatch_frame_ ( const CO_CANrxMsg_t & msg)
protected

Definition at line 49 of file frames.cpp.

◆ dispatch_node_events_()

void esphome::canopen::CANopenComponent::dispatch_node_events_ ( )
protected

Definition at line 151 of file node_monitor.cpp.

◆ drain_upload_()

bool esphome::canopen::CANopenComponent::drain_upload_ ( uint32_t dt_us,
CO_SDO_return_t & ret,
CO_SDO_abortCode_t & abort )
protected

Definition at line 312 of file sdo_client.cpp.

◆ dump_config()

void esphome::canopen::CANopenComponent::dump_config ( )
overridevirtual

Reimplemented from esphome::Component.

Definition at line 178 of file canopen.cpp.

◆ dump_device_info_config_()

void esphome::canopen::CANopenComponent::dump_device_info_config_ ( )
protected

Definition at line 46 of file device_info.cpp.

◆ dump_node_monitor_config_()

void esphome::canopen::CANopenComponent::dump_node_monitor_config_ ( )
protected

Definition at line 103 of file node_monitor.cpp.

◆ fail_setup_()

void esphome::canopen::CANopenComponent::fail_setup_ ( const LogString * reason)
protected

Definition at line 171 of file canopen.cpp.

◆ finish_sdo_()

void esphome::canopen::CANopenComponent::finish_sdo_ ( SDOResult result,
uint32_t abort_code )
protected

Definition at line 351 of file sdo_client.cpp.

◆ flush_held()

bool esphome::canopen::CANopenComponent::flush_held ( ) const
inline

Definition at line 113 of file canopen.h.

◆ get_nmt_state() [1/2]

NMTState esphome::canopen::CANopenComponent::get_nmt_state ( ) const
inline

Definition at line 95 of file canopen.h.

◆ get_nmt_state() [2/2]

NMTState esphome::canopen::CANopenComponent::get_nmt_state ( ) const
inline

Definition at line 100 of file canopen.h.

◆ get_node_state() [1/2]

NMTState esphome::canopen::CANopenComponent::get_node_state ( uint8_t node_id)

Definition at line 46 of file node_monitor.cpp.

◆ get_node_state() [2/2]

NMTState esphome::canopen::CANopenComponent::get_node_state ( uint8_t )
inline

Definition at line 157 of file canopen.h.

◆ get_od()

ObjectDictionary & esphome::canopen::CANopenComponent::get_od ( )
inline

Definition at line 131 of file canopen.h.

◆ get_setup_priority()

float esphome::canopen::CANopenComponent::get_setup_priority ( ) const
inlineoverridevirtual

Reimplemented from esphome::Component.

Definition at line 76 of file canopen.h.

◆ handle_frame_()

void esphome::canopen::CANopenComponent::handle_frame_ ( uint16_t ident,
const uint8_t * data,
uint8_t len )
protected

Definition at line 65 of file driver_can.cpp.

◆ has_pdos_()

bool esphome::canopen::CANopenComponent::has_pdos_ ( ) const
inlineprotected

Definition at line 488 of file canopen.h.

◆ idle_()

bool esphome::canopen::CANopenComponent::idle_ ( ) const
protected

Definition at line 214 of file canopen.cpp.

◆ init_node_monitor_()

void esphome::canopen::CANopenComponent::init_node_monitor_ ( )
protected

Definition at line 81 of file node_monitor.cpp.

◆ init_pdo_()

bool esphome::canopen::CANopenComponent::init_pdo_ ( )
protected

Definition at line 105 of file pdo.cpp.

◆ init_pdo_storage_()

bool esphome::canopen::CANopenComponent::init_pdo_storage_ ( )
protected

Definition at line 32 of file pdo_storage.cpp.

◆ init_sdo_client_()

bool esphome::canopen::CANopenComponent::init_sdo_client_ ( )
protected

Definition at line 42 of file sdo_client.cpp.

◆ is_client_only()

bool esphome::canopen::CANopenComponent::is_client_only ( ) const
inline

Definition at line 70 of file canopen.h.

◆ is_node_online() [1/2]

bool esphome::canopen::CANopenComponent::is_node_online ( uint8_t node_id)

Definition at line 56 of file node_monitor.cpp.

◆ is_node_online() [2/2]

bool esphome::canopen::CANopenComponent::is_node_online ( uint8_t )
inline

Definition at line 158 of file canopen.h.

◆ load_pdos_()

void esphome::canopen::CANopenComponent::load_pdos_ ( )
protected

Definition at line 58 of file pdo_storage.cpp.

◆ local_queues_busy_()

bool esphome::canopen::CANopenComponent::local_queues_busy_ ( ) const
protected

Definition at line 344 of file canopen.cpp.

◆ log_invalid_pdos_()

void esphome::canopen::CANopenComponent::log_invalid_pdos_ ( )
protected

Definition at line 126 of file pdo.cpp.

◆ loop()

void esphome::canopen::CANopenComponent::loop ( )
overridevirtual

Reimplemented from esphome::Component.

Definition at line 228 of file canopen.cpp.

◆ monitor_node_()

void esphome::canopen::CANopenComponent::monitor_node_ ( uint8_t node_id,
uint16_t timeout_ms )
protected

Definition at line 20 of file node_monitor.cpp.

◆ nmt_command_pending_()

bool esphome::canopen::CANopenComponent::nmt_command_pending_ ( ) const
protected

Definition at line 354 of file canopen.cpp.

◆ node_event_()

void esphome::canopen::CANopenComponent::node_event_ ( uint8_t node_id,
NodeEvent event,
NMTState state )
protected

Definition at line 110 of file node_monitor.cpp.

◆ on_frame_()

void esphome::canopen::CANopenComponent::on_frame_ ( const canbus::CanFrame & frame)
protected

Definition at line 28 of file driver_can.cpp.

◆ on_hb_nmt_changed()

void esphome::canopen::CANopenComponent::on_hb_nmt_changed ( uint8_t node_id,
uint8_t idx,
CO_NMT_internalState_t state,
void * object )
staticprotected

Definition at line 135 of file node_monitor.cpp.

◆ on_hb_remote_reset()

void esphome::canopen::CANopenComponent::on_hb_remote_reset ( uint8_t node_id,
uint8_t idx,
void * object )
staticprotected

Definition at line 147 of file node_monitor.cpp.

◆ on_hb_started()

void esphome::canopen::CANopenComponent::on_hb_started ( uint8_t node_id,
uint8_t idx,
void * object )
staticprotected

Definition at line 124 of file node_monitor.cpp.

◆ on_hb_timeout()

void esphome::canopen::CANopenComponent::on_hb_timeout ( uint8_t node_id,
uint8_t idx,
void * object )
staticprotected

Definition at line 143 of file node_monitor.cpp.

◆ pdo_count_()

size_t esphome::canopen::CANopenComponent::pdo_count_ ( ) const
inlineprotected

Definition at line 487 of file canopen.h.

◆ process_node_()

void esphome::canopen::CANopenComponent::process_node_ ( )
protected

Definition at line 273 of file canopen.cpp.

◆ process_node_monitor_()

void esphome::canopen::CANopenComponent::process_node_monitor_ ( uint32_t dt_us)
protected

Definition at line 98 of file node_monitor.cpp.

◆ process_pdo_()

void esphome::canopen::CANopenComponent::process_pdo_ ( uint32_t dt_us)
protected

Definition at line 137 of file pdo.cpp.

◆ process_sdo_()

void esphome::canopen::CANopenComponent::process_sdo_ ( uint32_t dt_us)
protected

Definition at line 250 of file sdo_client.cpp.

◆ process_sdo_abort_()

void esphome::canopen::CANopenComponent::process_sdo_abort_ ( uint32_t dt_us)
protected

Definition at line 204 of file sdo_client.cpp.

◆ push_node_event()

void esphome::canopen::CANopenComponent::push_node_event ( void * object,
uint8_t node_id,
NodeEvent event,
NMTState state )
staticprotected

Definition at line 131 of file node_monitor.cpp.

◆ queue_local_()

void esphome::canopen::CANopenComponent::queue_local_ ( uint16_t ident,
const uint8_t * data,
uint8_t len )
protected

Definition at line 128 of file driver_can.cpp.

◆ queue_sdo_()

bool esphome::canopen::CANopenComponent::queue_sdo_ ( const SDORequest & request)
protected

Definition at line 115 of file sdo_client.cpp.

◆ read_od()

OdResult esphome::canopen::CANopenComponent::read_od ( uint16_t index,
uint8_t sub,
void * data,
size_t max_len,
size_t * len )
inline

Definition at line 137 of file canopen.h.

◆ read_sdo() [1/2]

template<typename T >
bool esphome::canopen::CANopenComponent::read_sdo ( uint8_t node_id,
uint16_t index,
uint8_t sub,
SDOCallback callback,
void * context )
inline

Definition at line 193 of file canopen.h.

◆ read_sdo() [2/2]

bool esphome::canopen::CANopenComponent::read_sdo ( uint8_t node_id,
uint16_t index,
uint8_t sub,
uint8_t expected_size,
SDOCallback callback,
void * context )

Definition at line 68 of file sdo_client.cpp.

◆ read_sdo_data()

bool esphome::canopen::CANopenComponent::read_sdo_data ( uint8_t node_id,
uint16_t index,
uint8_t sub,
uint8_t * data,
size_t capacity,
SDOCallback callback,
void * context )

Definition at line 90 of file sdo_client.cpp.

◆ receive_()

bool esphome::canopen::CANopenComponent::receive_ ( uint16_t ident,
const uint8_t * data,
uint8_t len )
protected

Returns whether a CANopenNode object took the frame.

Definition at line 83 of file driver_can.cpp.

◆ reject_queued_sdo_()

void esphome::canopen::CANopenComponent::reject_queued_sdo_ ( )
protected

Definition at line 126 of file sdo_client.cpp.

◆ request_tpdo() [1/2]

bool esphome::canopen::CANopenComponent::request_tpdo ( uint16_t index,
uint8_t sub )

Definition at line 161 of file pdo.cpp.

◆ request_tpdo() [2/2]

bool esphome::canopen::CANopenComponent::request_tpdo ( uint8_t n)

Definition at line 149 of file pdo.cpp.

◆ restore_pdo_defaults_()

bool esphome::canopen::CANopenComponent::restore_pdo_defaults_ ( )
protected

Definition at line 105 of file pdo_storage.cpp.

◆ sdo_idle_()

bool esphome::canopen::CANopenComponent::sdo_idle_ ( ) const
inlineprotected

Definition at line 428 of file canopen.h.

◆ sdo_is_local_()

bool esphome::canopen::CANopenComponent::sdo_is_local_ ( ) const
inlineprotected

Definition at line 439 of file canopen.h.

◆ sdo_reply_is_stale_()

bool esphome::canopen::CANopenComponent::sdo_reply_is_stale_ ( const uint8_t * data,
uint8_t len ) const
protected

Definition at line 136 of file sdo_client.cpp.

◆ sdo_stopped_()

bool esphome::canopen::CANopenComponent::sdo_stopped_ ( ) const
protected

Definition at line 227 of file sdo_client.cpp.

◆ send_frame()

bool esphome::canopen::CANopenComponent::send_frame ( uint32_t can_id,
const uint8_t * data,
size_t len )

Definition at line 43 of file frames.cpp.

◆ send_nmt()

bool esphome::canopen::CANopenComponent::send_nmt ( uint8_t node_id,
NMTCommand command )

Definition at line 21 of file nmt_master.cpp.

◆ send_upload_block_()

void esphome::canopen::CANopenComponent::send_upload_block_ ( )
protected

Definition at line 321 of file canopen.cpp.

◆ set_device_info_defaults_()

void esphome::canopen::CANopenComponent::set_device_info_defaults_ ( )
protected

Definition at line 15 of file device_info.cpp.

◆ set_device_name()

void esphome::canopen::CANopenComponent::set_device_name ( const char * name)
inline

Definition at line 123 of file canopen.h.

◆ set_hardware_version()

void esphome::canopen::CANopenComponent::set_hardware_version ( const char * version)
inline

Definition at line 125 of file canopen.h.

◆ set_heartbeat_interval()

void esphome::canopen::CANopenComponent::set_heartbeat_interval ( uint16_t ms)
inline

Definition at line 85 of file canopen.h.

◆ set_identity()

void esphome::canopen::CANopenComponent::set_identity ( uint32_t vendor_id,
uint32_t product_code,
uint32_t revision_number,
uint32_t serial_number )
inline

Definition at line 120 of file canopen.h.

◆ set_next_local()

void esphome::canopen::CANopenComponent::set_next_local ( CANopenComponent * next)
inline

Definition at line 82 of file canopen.h.

◆ set_nmt_state()

bool esphome::canopen::CANopenComponent::set_nmt_state ( NMTState state)

Definition at line 367 of file canopen.cpp.

◆ set_pdo_storage_key()

void esphome::canopen::CANopenComponent::set_pdo_storage_key ( uint32_t key)
inline

Definition at line 261 of file canopen.h.

◆ set_pdo_table()

void esphome::canopen::CANopenComponent::set_pdo_table ( PdoParams * pdos,
uint8_t rpdo_count,
uint8_t tpdo_count )
inline

Definition at line 250 of file canopen.h.

◆ set_response_timeout()

void esphome::canopen::CANopenComponent::set_response_timeout ( uint16_t ms)
inline

Definition at line 90 of file canopen.h.

◆ set_software_version()

void esphome::canopen::CANopenComponent::set_software_version ( const char * version)
inline

Definition at line 126 of file canopen.h.

◆ set_start_operational()

void esphome::canopen::CANopenComponent::set_start_operational ( bool operational)
inline

Definition at line 88 of file canopen.h.

◆ setup()

void esphome::canopen::CANopenComponent::setup ( )
overridevirtual

Reimplemented from esphome::Component.

Definition at line 49 of file canopen.cpp.

◆ SLOT_LIST_REQUIRES()

esphome::canopen::CANopenComponent::SLOT_LIST_REQUIRES ( ESPHOME_CANOPEN_HEARTBEAT_CLIENTS )

◆ stage_bus_frame_()

void esphome::canopen::CANopenComponent::stage_bus_frame_ ( uint16_t ident,
const uint8_t * data,
uint8_t len )
protected

Definition at line 56 of file driver_can.cpp.

◆ start_sdo_()

CO_SDO_return_t esphome::canopen::CANopenComponent::start_sdo_ ( )
protected

Definition at line 172 of file sdo_client.cpp.

◆ stop_sdo_()

void esphome::canopen::CANopenComponent::stop_sdo_ ( )
protected

Definition at line 237 of file sdo_client.cpp.

◆ storage_restore()

ODR_t esphome::canopen::CANopenComponent::storage_restore ( CO_storage_entry_t * entry,
CO_CANmodule_t * module )
staticprotected

Definition at line 119 of file pdo_storage.cpp.

◆ storage_store()

ODR_t esphome::canopen::CANopenComponent::storage_store ( CO_storage_entry_t * entry,
CO_CANmodule_t * module )
staticprotected

Definition at line 115 of file pdo_storage.cpp.

◆ store_pdos_()

bool esphome::canopen::CANopenComponent::store_pdos_ ( )
protected

Definition at line 91 of file pdo_storage.cpp.

◆ transmit()

bool esphome::canopen::CANopenComponent::transmit ( uint16_t ident,
const uint8_t * data,
uint8_t len )

Definition at line 108 of file driver_can.cpp.

◆ write_od()

OdResult esphome::canopen::CANopenComponent::write_od ( uint16_t index,
uint8_t sub,
const void * data,
size_t len )
inline

Definition at line 134 of file canopen.h.

◆ write_sdo() [1/2]

template<typename T >
bool esphome::canopen::CANopenComponent::write_sdo ( uint8_t node_id,
uint16_t index,
uint8_t sub,
T value,
SDOCallback callback = nullptr,
void * context = nullptr )
inline

Definition at line 201 of file canopen.h.

◆ write_sdo() [2/2]

bool esphome::canopen::CANopenComponent::write_sdo ( uint8_t node_id,
uint16_t index,
uint8_t sub,
uint32_t value,
uint8_t size,
SDOCallback callback = nullptr,
void * context = nullptr )

Definition at line 78 of file sdo_client.cpp.

◆ write_sdo_data()

bool esphome::canopen::CANopenComponent::write_sdo_data ( uint8_t node_id,
uint16_t index,
uint8_t sub,
const uint8_t * data,
size_t len,
SDOCallback callback = nullptr,
void * context = nullptr )

Definition at line 103 of file sdo_client.cpp.

Field Documentation

◆ bus_frame_staged_

bool esphome::canopen::CANopenComponent::bus_frame_staged_ {false}
protected

Definition at line 329 of file canopen.h.

◆ canbus_

canbus::Canbus* esphome::canopen::CANopenComponent::canbus_
protected

Definition at line 316 of file canopen.h.

◆ co_

CO_t* esphome::canopen::CANopenComponent::co_ {nullptr}
protected

Definition at line 317 of file canopen.h.

◆ cob_emcy_

uint32_t esphome::canopen::CANopenComponent::cob_emcy_ {0x80}
protected

Definition at line 340 of file canopen.h.

◆ config_

CO_config_t esphome::canopen::CANopenComponent::config_ {}
protected

Definition at line 318 of file canopen.h.

◆ dev_type_

uint32_t esphome::canopen::CANopenComponent::dev_type_ {0}
protected

Definition at line 343 of file canopen.h.

◆ device_name_

const char* esphome::canopen::CANopenComponent::device_name_ {nullptr}
protected

Definition at line 344 of file canopen.h.

◆ emcy_callback_

CallbackManager<void(uint8_t, const Emergency &)> esphome::canopen::CANopenComponent::emcy_callback_
protected

Definition at line 407 of file canopen.h.

◆ err_reg_

uint8_t esphome::canopen::CANopenComponent::err_reg_ {0}
protected

Definition at line 352 of file canopen.h.

◆ frame_listeners_

FrameListener* esphome::canopen::CANopenComponent::frame_listeners_ {nullptr}
protected

Definition at line 401 of file canopen.h.

◆ hardware_version_

const char* esphome::canopen::CANopenComponent::hardware_version_ {nullptr}
protected

Definition at line 345 of file canopen.h.

◆ hb_cons_

SlotList<uint32_t, ESPHOME_CANOPEN_HEARTBEAT_CLIENTS> esphome::canopen::CANopenComponent::hb_cons_
protected

Definition at line 394 of file canopen.h.

◆ hb_cons_count_

uint8_t esphome::canopen::CANopenComponent::hb_cons_count_ {0}
protected

Definition at line 367 of file canopen.h.

◆ hb_producer_ms_

uint16_t esphome::canopen::CANopenComponent::hb_producer_ms_ {5000}
protected

Definition at line 351 of file canopen.h.

◆ heartbeat_callback_

CallbackManager<void(uint8_t, NMTState)> esphome::canopen::CANopenComponent::heartbeat_callback_
protected

Definition at line 404 of file canopen.h.

◆ hold_flush_

bool esphome::canopen::CANopenComponent::hold_flush_ {false}
protected

Definition at line 322 of file canopen.h.

◆ identity_

std::array<uint32_t, 4> esphome::canopen::CANopenComponent::identity_ {}
protected

Definition at line 347 of file canopen.h.

◆ identity_highest_sub_

uint8_t esphome::canopen::CANopenComponent::identity_highest_sub_ {4}
protected

Definition at line 353 of file canopen.h.

◆ last_us_

uint32_t esphome::canopen::CANopenComponent::last_us_ {0}
protected

Definition at line 341 of file canopen.h.

◆ local_dropped_

uint16_t esphome::canopen::CANopenComponent::local_dropped_ {0}
protected

Definition at line 326 of file canopen.h.

◆ local_queue_

FixedRingBuffer<LocalFrame, LOCAL_QUEUE_SIZE> esphome::canopen::CANopenComponent::local_queue_
protected

Definition at line 325 of file canopen.h.

◆ LOCAL_QUEUE_SIZE

uint8_t esphome::canopen::CANopenComponent::LOCAL_QUEUE_SIZE = 16
staticconstexprprotected

Definition at line 276 of file canopen.h.

◆ next_local_

CANopenComponent* esphome::canopen::CANopenComponent::next_local_ {nullptr}
protected

Definition at line 324 of file canopen.h.

◆ nmt_sending_

bool esphome::canopen::CANopenComponent::nmt_sending_ {false}
protected

Definition at line 361 of file canopen.h.

◆ nmt_state_

NMTState esphome::canopen::CANopenComponent::nmt_state_ {NMTState::NMT_STATE_UNKNOWN}
protected

Definition at line 355 of file canopen.h.

◆ nmt_state_callback_

LazyCallbackManager<void(NMTState)> esphome::canopen::CANopenComponent::nmt_state_callback_
protected

Definition at line 339 of file canopen.h.

◆ NO_NODE_ID

uint8_t esphome::canopen::CANopenComponent::NO_NODE_ID = 0
staticconstexpr

Definition at line 66 of file canopen.h.

◆ node_event_callback_

LazyCallbackManager<void(uint8_t, NodeEvent, NMTState)> esphome::canopen::CANopenComponent::node_event_callback_
protected

Definition at line 370 of file canopen.h.

◆ node_id_

uint8_t esphome::canopen::CANopenComponent::node_id_
protected

Definition at line 321 of file canopen.h.

◆ od_

ObjectDictionary esphome::canopen::CANopenComponent::od_
protected

Definition at line 319 of file canopen.h.

◆ pdo_fingerprint_

uint32_t esphome::canopen::CANopenComponent::pdo_fingerprint_ {0}
protected

Definition at line 513 of file canopen.h.

◆ pdo_not_reserved_

bool esphome::canopen::CANopenComponent::pdo_not_reserved_ {false}
protected

Definition at line 493 of file canopen.h.

◆ pdo_pref_

ESPPreferenceObject esphome::canopen::CANopenComponent::pdo_pref_
protected

Definition at line 509 of file canopen.h.

◆ pdo_valid_pref_

ESPPreferenceObject esphome::canopen::CANopenComponent::pdo_valid_pref_
protected

Definition at line 510 of file canopen.h.

◆ pdos_

PdoParams* esphome::canopen::CANopenComponent::pdos_ {nullptr}
protected

Definition at line 490 of file canopen.h.

◆ pending_node_events_

StaticVector<PendingNodeEvent, 2 * ESPHOME_CANOPEN_HEARTBEAT_CLIENTS> esphome::canopen::CANopenComponent::pending_node_events_
protected

Definition at line 392 of file canopen.h.

◆ processing_

bool esphome::canopen::CANopenComponent::processing_ {false}
protected

Definition at line 359 of file canopen.h.

◆ reset_deadline_ms_

uint32_t esphome::canopen::CANopenComponent::reset_deadline_ms_ {0}
protected

Definition at line 342 of file canopen.h.

◆ reset_pending_

bool esphome::canopen::CANopenComponent::reset_pending_ {false}
protected

Definition at line 358 of file canopen.h.

◆ response_timeout_ms_

uint16_t esphome::canopen::CANopenComponent::response_timeout_ms_ {500}
protected

Definition at line 320 of file canopen.h.

◆ rpdo_count_

uint8_t esphome::canopen::CANopenComponent::rpdo_count_ {0}
protected

Definition at line 491 of file canopen.h.

◆ sdo_abort_guard_us_

uint32_t esphome::canopen::CANopenComponent::sdo_abort_guard_us_ {0}
protected

Definition at line 463 of file canopen.h.

◆ sdo_abort_pending_

bool esphome::canopen::CANopenComponent::sdo_abort_pending_ {false}
protected

Definition at line 471 of file canopen.h.

◆ sdo_active_

SDORequest esphome::canopen::CANopenComponent::sdo_active_ {}
protected

Definition at line 457 of file canopen.h.

◆ sdo_busy_

bool esphome::canopen::CANopenComponent::sdo_busy_ {false}
protected

Definition at line 470 of file canopen.h.

◆ sdo_cancel_pending_

bool esphome::canopen::CANopenComponent::sdo_cancel_pending_ {false}
protected

Definition at line 472 of file canopen.h.

◆ sdo_cli_cob_rx_

uint32_t esphome::canopen::CANopenComponent::sdo_cli_cob_rx_ {0x80000000}
protected

Definition at line 466 of file canopen.h.

◆ sdo_cli_cob_tx_

uint32_t esphome::canopen::CANopenComponent::sdo_cli_cob_tx_ {0x80000000}
protected

Definition at line 465 of file canopen.h.

◆ sdo_cli_highest_sub_

uint8_t esphome::canopen::CANopenComponent::sdo_cli_highest_sub_ {3}
protected

Definition at line 468 of file canopen.h.

◆ sdo_cli_node_

uint8_t esphome::canopen::CANopenComponent::sdo_cli_node_ {0}
protected

Definition at line 469 of file canopen.h.

◆ sdo_last_ms_

uint32_t esphome::canopen::CANopenComponent::sdo_last_ms_ {0}
protected

Definition at line 460 of file canopen.h.

◆ sdo_len_

size_t esphome::canopen::CANopenComponent::sdo_len_ {0}
protected

Definition at line 459 of file canopen.h.

◆ sdo_queue_

StaticRingBuffer<SDORequest, SDO_QUEUE_SIZE> esphome::canopen::CANopenComponent::sdo_queue_
protected

Definition at line 456 of file canopen.h.

◆ SDO_QUEUE_SIZE

size_t esphome::canopen::CANopenComponent::SDO_QUEUE_SIZE = 16
staticconstexprprotected

Definition at line 427 of file canopen.h.

◆ sdo_rx_value_

std::array<uint8_t, 4> esphome::canopen::CANopenComponent::sdo_rx_value_ {}
protected

Definition at line 467 of file canopen.h.

◆ sdo_srv_cob_rx_

uint32_t esphome::canopen::CANopenComponent::sdo_srv_cob_rx_ {0}
protected

Definition at line 349 of file canopen.h.

◆ sdo_srv_cob_tx_

uint32_t esphome::canopen::CANopenComponent::sdo_srv_cob_tx_ {0}
protected

Definition at line 350 of file canopen.h.

◆ sdo_srv_highest_sub_

uint8_t esphome::canopen::CANopenComponent::sdo_srv_highest_sub_ {2}
protected

Definition at line 354 of file canopen.h.

◆ software_version_

const char* esphome::canopen::CANopenComponent::software_version_ {nullptr}
protected

Definition at line 346 of file canopen.h.

◆ start_operational_

bool esphome::canopen::CANopenComponent::start_operational_ {true}
protected

Definition at line 356 of file canopen.h.

◆ storage_

CO_storage_t esphome::canopen::CANopenComponent::storage_ {}
protected

Definition at line 506 of file canopen.h.

◆ storage_entry_

CO_storage_entry_t esphome::canopen::CANopenComponent::storage_entry_ {}
protected

Definition at line 507 of file canopen.h.

◆ timeout_ms

uint16_t esphome::canopen::CANopenComponent::timeout_ms { this->monitor_node_(node_id, timeout_ms)

Definition at line 151 of file canopen.h.

◆ tpdo_count_

uint8_t esphome::canopen::CANopenComponent::tpdo_count_ {0}
protected

Definition at line 492 of file canopen.h.

◆ UPLOAD_BURST_US

uint32_t esphome::canopen::CANopenComponent::UPLOAD_BURST_US = 10000
staticconstexprprotected

Definition at line 297 of file canopen.h.


The documentation for this class was generated from the following files: