#include <canopen_node.h>
|
| | CANopenNode (CANopenComponent *parent, uint8_t node_id) |
| |
| | CANopenNode (const CANopenNode &)=delete |
| |
| CANopenNode & | operator= (const CANopenNode &)=delete |
| |
| CANopenComponent * | get_canopen () const |
| |
| uint8_t | get_node_id () const |
| |
| bool | is_online () const |
| |
| NMTState | get_nmt_state () const |
| |
| bool | is_operational () const |
| |
| template<typename T > |
| bool | read_sdo (uint16_t index, uint8_t sub, SDOCallback callback, void *context=nullptr) |
| |
| template<typename T > |
| bool | write_sdo (uint16_t index, uint8_t sub, T value, SDOCallback callback=nullptr, void *context=nullptr) |
| |
| bool | read_sdo_data (uint16_t index, uint8_t sub, uint8_t *data, size_t capacity, SDOCallback callback, void *context=nullptr) |
| |
| bool | write_sdo_data (uint16_t index, uint8_t sub, const uint8_t *data, size_t len, SDOCallback callback=nullptr, void *context=nullptr) |
| |
| void | cancel_sdo (void *context=nullptr) |
| |
| bool | send_nmt (NMTCommand command) |
| |
|
| template<typename T > |
| static T * | from_context (void *context) |
| |
Definition at line 12 of file canopen_node.h.
◆ CANopenNode() [1/2]
| esphome::canopen::CANopenNode::CANopenNode |
( |
CANopenComponent * | parent, |
|
|
uint8_t | node_id ) |
◆ CANopenNode() [2/2]
| esphome::canopen::CANopenNode::CANopenNode |
( |
const CANopenNode & | | ) |
|
|
delete |
◆ ~CANopenNode()
| esphome::canopen::CANopenNode::~CANopenNode |
( |
| ) |
|
|
protecteddefault |
◆ cancel_sdo()
| void esphome::canopen::CANopenNode::cancel_sdo |
( |
void * | context = nullptr | ) |
|
|
inline |
◆ context_()
| void * esphome::canopen::CANopenNode::context_ |
( |
void * | context | ) |
|
|
inlineprotected |
◆ from_context()
template<typename T >
| static T * esphome::canopen::CANopenNode::from_context |
( |
void * | context | ) |
|
|
inlinestatic |
◆ get_canopen()
◆ get_nmt_state()
| NMTState esphome::canopen::CANopenNode::get_nmt_state |
( |
| ) |
const |
|
inline |
◆ get_node_id()
| uint8_t esphome::canopen::CANopenNode::get_node_id |
( |
| ) |
const |
|
inline |
◆ is_online()
| bool esphome::canopen::CANopenNode::is_online |
( |
| ) |
const |
|
inline |
◆ is_operational()
| bool esphome::canopen::CANopenNode::is_operational |
( |
| ) |
const |
|
inline |
◆ on_node_emcy()
| virtual void esphome::canopen::CANopenNode::on_node_emcy |
( |
const Emergency & | emergency | ) |
|
|
inlineprotectedvirtual |
◆ on_node_nmt_changed()
| virtual void esphome::canopen::CANopenNode::on_node_nmt_changed |
( |
NMTState | state | ) |
|
|
inlineprotectedvirtual |
◆ on_node_offline()
| virtual void esphome::canopen::CANopenNode::on_node_offline |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ on_node_online()
| virtual void esphome::canopen::CANopenNode::on_node_online |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ on_node_reset()
| virtual void esphome::canopen::CANopenNode::on_node_reset |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ operator=()
◆ read_sdo()
template<typename T >
| bool esphome::canopen::CANopenNode::read_sdo |
( |
uint16_t | index, |
|
|
uint8_t | sub, |
|
|
SDOCallback | callback, |
|
|
void * | context = nullptr ) |
|
inline |
◆ read_sdo_data()
| bool esphome::canopen::CANopenNode::read_sdo_data |
( |
uint16_t | index, |
|
|
uint8_t | sub, |
|
|
uint8_t * | data, |
|
|
size_t | capacity, |
|
|
SDOCallback | callback, |
|
|
void * | context = nullptr ) |
|
inline |
◆ send_nmt()
| bool esphome::canopen::CANopenNode::send_nmt |
( |
NMTCommand | command | ) |
|
|
inline |
◆ write_sdo()
template<typename T >
| bool esphome::canopen::CANopenNode::write_sdo |
( |
uint16_t | index, |
|
|
uint8_t | sub, |
|
|
T | value, |
|
|
SDOCallback | callback = nullptr, |
|
|
void * | context = nullptr ) |
|
inline |
◆ write_sdo_data()
| bool esphome::canopen::CANopenNode::write_sdo_data |
( |
uint16_t | index, |
|
|
uint8_t | sub, |
|
|
const uint8_t * | data, |
|
|
size_t | len, |
|
|
SDOCallback | callback = nullptr, |
|
|
void * | context = nullptr ) |
|
inline |
◆ canopen_
◆ node_id_
| uint8_t esphome::canopen::CANopenNode::node_id_ |
|
protected |
The documentation for this class was generated from the following files: