ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
types.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::canopen::SDOReply
 
struct  esphome::canopen::PdoMapping
 
struct  esphome::canopen::FrameListener
 
struct  esphome::canopen::Emergency
 

Namespaces

namespace  esphome
 
namespace  esphome::canopen
 

Typedefs

using esphome::canopen::SDOCallback = void (*)(void *context, const SDOReply &reply)
 
using esphome::canopen::FrameCallback = void (*)(void *context, uint32_t can_id, const uint8_t *data, uint8_t len)
 

Enumerations

enum class  esphome::canopen::SDOResult : uint8_t {
  esphome::canopen::SDO_RESULT_SUCCESS , esphome::canopen::SDO_RESULT_ABORT , esphome::canopen::SDO_RESULT_TIMEOUT , esphome::canopen::SDO_RESULT_SIZE_MISMATCH ,
  esphome::canopen::SDO_RESULT_TRANSPORT_ERROR , esphome::canopen::SDO_RESULT_REJECTED
}
 
enum class  esphome::canopen::NMTState : uint8_t {
  esphome::canopen::NMT_STATE_BOOTUP = 0 , esphome::canopen::NMT_STATE_STOPPED = 4 , esphome::canopen::NMT_STATE_OPERATIONAL = 5 , esphome::canopen::NMT_STATE_PRE_OPERATIONAL = 127 ,
  esphome::canopen::NMT_STATE_UNKNOWN = 255
}
 
enum class  esphome::canopen::NodeEvent : uint8_t { esphome::canopen::NODE_EVENT_ONLINE , esphome::canopen::NODE_EVENT_OFFLINE , esphome::canopen::NODE_EVENT_NMT_CHANGED , esphome::canopen::NODE_EVENT_RESET }
 
enum class  esphome::canopen::NMTCommand : uint8_t {
  esphome::canopen::NMT_COMMAND_START = 1 , esphome::canopen::NMT_COMMAND_STOP = 2 , esphome::canopen::NMT_COMMAND_PRE_OPERATIONAL = 128 , esphome::canopen::NMT_COMMAND_RESET_NODE = 129 ,
  esphome::canopen::NMT_COMMAND_RESET_COMMUNICATION = 130
}
 

Functions

const LogString * esphome::canopen::sdo_result_to_string (SDOResult result)
 
const LogString * esphome::canopen::nmt_state_to_string (NMTState state)
 
const LogString * esphome::canopen::node_event_to_string (NodeEvent event)
 
bool esphome::canopen::decode_heartbeat (uint32_t can_id, const uint8_t *data, size_t len, uint8_t &node, NMTState &state)
 
bool esphome::canopen::decode_emcy (uint32_t can_id, const uint8_t *data, size_t len, uint8_t &node, Emergency &emcy)
 

Variables

constexpr std::array< NMTState, 4 > esphome::canopen::NMT_STATES