23#ifndef LELY_CO_INTERN_NMT_HB_H_
24#define LELY_CO_INTERN_NMT_HB_H_
55void *__co_nmt_hb_alloc(
void);
56void __co_nmt_hb_free(
void *ptr);
This header file is part of the CANopen library; it contains the network management (NMT) declaration...
void co_nmt_hb_destroy(co_nmt_hb_t *hb)
Destroys a CANopen NMT heartbeat consumer service.
void co_nmt_hb_set_1016(co_nmt_hb_t *hb, co_unsigned8_t id, co_unsigned16_t ms)
Processes the value of CANopen object 1016 (Consumer heartbeat time) for the specified heartbeat cons...
void co_nmt_hb_ind(co_nmt_t *nmt, co_unsigned8_t id, int state, int reason, co_unsigned8_t st)
The CANopen NMT heartbeat indication function, invoked when a heartbeat event occurs.
co_nmt_hb_t * co_nmt_hb_create(can_net_t *net, co_nmt_t *nmt)
Creates a new CANopen NMT heartbeat consumer service.
void co_nmt_hb_set_st(co_nmt_hb_t *hb, co_unsigned8_t st)
Sets the expected state of a remote NMT node.
This is the internal header file of the CANopen library.
A CANopen NMT heartbeat consumer.
co_unsigned8_t st
The state of the node (excluding the toggle bit).
can_net_t * net
A pointer to a CAN network interface.
co_unsigned16_t ms
The consumer heartbeat time (in milliseconds).
co_nmt_t * nmt
A pointer to an NMT master/slave service.
int state
Indicates whether a heartbeat error occurred (CO_NMT_EC_OCCURRED or CO_NMT_EC_RESOLVED).
A CANopen NMT master/slave service.