|
| | BasicSlave (aio::TimerBase &timer, aio::CanBusBase &bus, const ::std::string &dcf_txt, const ::std::string &dcf_bin="", uint8_t id=0xff) |
| | Creates a new CANopen slave. More...
|
| |
| | Node (aio::TimerBase &timer, aio::CanBusBase &bus, const ::std::string &dcf_txt, const ::std::string &dcf_bin="", uint8_t id=0xff) |
| | Creates a new CANopen node. More...
|
| |
| void | Reset () |
| | (Re)starts the node. More...
|
| |
| | IoContext (aio::TimerBase &timer, aio::CanBusBase &bus, BasicLockable *mutex=nullptr) |
| | Creates a new I/O context. More...
|
| |
|
aio::ExecutorBase | GetExecutor () const noexcept |
| | Returns the executor used to process I/O events on the CAN bus.
|
| |
| template<class F > |
| void | Post (F &&f) |
| | Schedules the specified Callable object for execution. More...
|
| |
| | Device (const ::std::string &dcf_txt, const ::std::string &dcf_bin="", uint8_t id=0xff, BasicLockable *mutex=nullptr) |
| | Creates a new CANopen device description. More...
|
| |
|
uint8_t | netid () const noexcept |
| | Returns the network-ID.
|
| |
|
uint8_t | id () const noexcept |
| | Returns the node-ID.
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenType< T >::value, T >::type | Read (uint16_t idx, uint8_t subidx) const |
| | Submits an SDO upload request to the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenType< T >::value, T >::type | Read (uint16_t idx, uint8_t subidx, ::std::error_code &ec) const |
| | Submits an SDO upload request to the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenBasic< T >::value >::type | Write (uint16_t idx, uint8_t subidx, T value) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenBasic< T >::value >::type | Write (uint16_t idx, uint8_t subidx, T value, ::std::error_code &ec) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenArray< T >::value >::type | Write (uint16_t idx, uint8_t subidx, const T &value) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenArray< T >::value >::type | Write (uint16_t idx, uint8_t subidx, const T &value, ::std::error_code &ec) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const char *value) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const char *value, ::std::error_code &ec) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const char16_t *value) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const char16_t *value, ::std::error_code &ec) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const void *p, ::std::size_t n) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const void *p, ::std::size_t n, ::std::error_code &ec) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
|
| Object | operator[] (uint16_t idx) |
| | Returns a mutator object that provides read/write access to the specified CANopen object in the local object dictionary. More...
|
| |
| ConstObject | operator[] (uint16_t idx) const |
| | Returns an accessor object that provides read-only access to the specified CANopen object in the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenType< T >::value >::type | OnRead (uint16_t idx, uint8_t subidx, ::std::function< OnReadSignature< T >> ind) |
| | Registers a callback function to be invoked on read (SDO upload) access to the specified CANopen sub-object in the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenType< T >::value >::type | OnRead (uint16_t idx, uint8_t subidx, ::std::function< OnReadSignature< T >> ind, ::std::error_code &ec) |
| | Registers a callback function to be invoked on read (SDO upload) access to the specified CANopen sub-object in the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenType< T >::value >::type | OnWrite (uint16_t idx, uint8_t subidx, ::std::function< OnWriteSignature< T >> ind) |
| | Registers a callback function to be invoked on write (SDO download) access to the specified CANopen sub-object in the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenType< T >::value >::type | OnWrite (uint16_t idx, uint8_t subidx, ::std::function< OnWriteSignature< T >> ind, ::std::error_code &ec) |
| | Registers a callback function to be invoked on write (SDO download) access to the specified CANopen sub-object in the local object dictionary. More...
|
| |
| virtual void | OnLifeGuarding (bool occurred) noexcept |
| | The function invoked when a life guarding event occurs or is resolved. More...
|
| |
| virtual void | lock () final override |
| | Blocks until a lock can be obtained for the current execution agent (thread, process, task). More...
|
| |
|
virtual void | unlock () final override |
| | Releases the lock held by the execution agent. Throws no exceptions.
|
| |
| void | OnCanState (CanState new_state, CanState old_state) noexcept override |
| | Implements the default behavior for a CAN bus state change. More...
|
| |
|
CONMT * | nmt () const noexcept |
| | Returns a pointer to the internal CANopen NMT master/slave service from <lely/co/nmt.hpp>.
|
| |
| void | RpdoRtr (int num=0) |
| | Requests the transmission of a PDO. More...
|
| |
| void | TpdoEvent (int num=0) |
| | Triggers the transmission of an event-driven (asynchronous) PDO. More...
|
| |
| virtual void | OnCommand (NmtCommand cs) noexcept |
| | The function invoked when an NMT command is received from the master. More...
|
| |
| virtual void | OnHeartbeat (uint8_t id, bool occurred) noexcept |
| | The function invoked when a heartbeat timeout event occurs or is resolved. More...
|
| |
| virtual void | OnState (uint8_t id, NmtState st) noexcept |
| | The function invoked when an NMT state change or boot-up event is detected for a remote node by the heartbeat protocol. More...
|
| |
| virtual void | OnRpdo (int num, ::std::error_code ec, const void *p, ::std::size_t n) noexcept |
| | The function invoked when a Receive-PDO is processed. More...
|
| |
| virtual void | OnRpdoError (int num, uint16_t eec, uint8_t er) noexcept |
| | The function invoked when a Receive-PDO length mismatch or timeout error occurs. More...
|
| |
| virtual void | OnTpdo (int num, ::std::error_code ec, const void *p, ::std::size_t n) noexcept |
| | The function invoked after a Transmit-PDO is sent or an error occurs. More...
|
| |
| virtual void | OnSync (uint8_t cnt, const time_point &t) noexcept |
| | The function invoked when a SYNC message is sent/received. More...
|
| |
| virtual void | OnSyncError (uint16_t eec, uint8_t er) noexcept |
| | The function invoked when the data length of a received SYNC message does not match. More...
|
| |
| virtual void | OnTime (const ::std::chrono::system_clock::time_point &abs_time) noexcept |
| | The function invoked when a TIME message is received. More...
|
| |
| virtual void | OnEmcy (uint8_t id, uint16_t eec, uint8_t er, uint8_t msef[5]) noexcept |
| | The function invoked when an EMCY message is received. More...
|
| |
|
CANNet * | net () const noexcept |
| | Returns a pointer to the internal CAN network interface from <lely/can/net.hpp>.
|
| |
| void | SetTime () |
| | Update the CAN network time. More...
|
| |
| virtual void | OnCanError (CanError error) noexcept |
| | The function invoked when an error is detected on the CAN bus. More...
|
| |
| | IoContext (aio::TimerBase &timer, aio::CanBusBase &bus, BasicLockable *mutex=nullptr) |
| | Creates a new I/O context. More...
|
| |
|
aio::ExecutorBase | GetExecutor () const noexcept |
| | Returns the executor used to process I/O events on the CAN bus.
|
| |
| template<class F > |
| void | Post (F &&f) |
| | Schedules the specified Callable object for execution. More...
|
| |
|
CODev * | dev () const noexcept |
| | Returns a pointer to the internal CANopen device from <lely/co/dev.hpp>.
|
| |
| const ::std::type_info & | Type (uint16_t idx, uint8_t subidx) const |
| | Returns the type of a sub-object. More...
|
| |
| const ::std::type_info & | Type (uint16_t idx, uint8_t subidx, ::std::error_code &ec) const |
| | Returns the type of a sub-object. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenType< T >::value, T >::type | Get (uint16_t idx, uint8_t subidx) const |
| | Reads the value of a sub-object. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenType< T >::value, T >::type | Get (uint16_t idx, uint8_t subidx, ::std::error_code &ec) const |
| | Reads the value of a sub-object. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenBasic< T >::value >::type | Set (uint16_t idx, uint8_t subidx, T value) |
| | Writes a CANopen basic value to a sub-object. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenBasic< T >::value >::type | Set (uint16_t idx, uint8_t subidx, T value, ::std::error_code &ec) |
| | Writes a CANopen basic value to a sub-object. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenArray< T >::value >::type | Set (uint16_t idx, uint8_t subidx, const T &value) |
| | Writes a CANopen array value to a sub-object. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenArray< T >::value >::type | Set (uint16_t idx, uint8_t subidx, const T &value, ::std::error_code &ec) |
| | Writes a CANopen array value to a sub-object. More...
|
| |
| void | Set (uint16_t idx, uint8_t subidx, const char *value) |
| | Writes a VISIBLE_STRING to a sub-object. More...
|
| |
| void | Set (uint16_t idx, uint8_t subidx, const char *value, ::std::error_code &ec) |
| | Writes a VISIBLE_STRING to a sub-object. More...
|
| |
| void | Set (uint16_t idx, uint8_t subidx, const char16_t *value) |
| | Writes a UNICODE_STRING to a sub-object. More...
|
| |
| void | Set (uint16_t idx, uint8_t subidx, const char16_t *value, ::std::error_code &ec) |
| | Writes a UNICODE_STRING to a sub-object. More...
|
| |
| void | Set (uint16_t idx, uint8_t subidx, const void *p, ::std::size_t n) |
| | Writes an OCTET_STRING or DOMAIN value to a sub-object. More...
|
| |
| void | Set (uint16_t idx, uint8_t subidx, const void *p, ::std::size_t n, ::std::error_code &ec) |
| | Writes an OCTET_STRING or DOMAIN value to a sub-object. More...
|
| |
| | Device (const ::std::string &dcf_txt, const ::std::string &dcf_bin="", uint8_t id=0xff, BasicLockable *mutex=nullptr) |
| | Creates a new CANopen device description. More...
|
| |
|
uint8_t | netid () const noexcept |
| | Returns the network-ID.
|
| |
|
uint8_t | id () const noexcept |
| | Returns the node-ID.
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenType< T >::value, T >::type | Read (uint16_t idx, uint8_t subidx) const |
| | Submits an SDO upload request to the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenType< T >::value, T >::type | Read (uint16_t idx, uint8_t subidx, ::std::error_code &ec) const |
| | Submits an SDO upload request to the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenBasic< T >::value >::type | Write (uint16_t idx, uint8_t subidx, T value) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenBasic< T >::value >::type | Write (uint16_t idx, uint8_t subidx, T value, ::std::error_code &ec) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenArray< T >::value >::type | Write (uint16_t idx, uint8_t subidx, const T &value) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| template<class T > |
| typename ::std::enable_if< detail::IsCanopenArray< T >::value >::type | Write (uint16_t idx, uint8_t subidx, const T &value, ::std::error_code &ec) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const char *value) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const char *value, ::std::error_code &ec) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const char16_t *value) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const char16_t *value, ::std::error_code &ec) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const void *p, ::std::size_t n) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |
| void | Write (uint16_t idx, uint8_t subidx, const void *p, ::std::size_t n, ::std::error_code &ec) |
| | Submits an SDO download request to the local object dictionary. More...
|
| |