Lely core libraries  2.2.5
__co_nmt_state Struct Reference

A CANopen NMT state. More...

Collaboration diagram for __co_nmt_state:

Data Fields

co_nmt_state_t *(* on_enter )(co_nmt_t *nmt)
 A pointer to the function invoked when a new state is entered.
 
co_nmt_state_t *(* on_cs )(co_nmt_t *nmt, co_unsigned8_t cs)
 A pointer to the transition function invoked when an NMT command is received. More...
 
co_nmt_state_t *(* on_boot )(co_nmt_t *nmt, co_unsigned8_t id, co_unsigned8_t st, char es)
 A pointer to the transition function invoked when an 'boot slave' process completes. More...
 
void(* on_leave )(co_nmt_t *nmt)
 A pointer to the function invoked when the current state is left.
 

Detailed Description

A CANopen NMT state.

Definition at line 408 of file nmt.c.

Field Documentation

◆ on_cs

co_nmt_state_t*(* __co_nmt_state::on_cs) (co_nmt_t *nmt, co_unsigned8_t cs)

A pointer to the transition function invoked when an NMT command is received.

Parameters
nmta pointer to an NMT master/slave service.
csthe NMT command specifier (one of CO_NMT_CS_START, CO_NMT_CS_STOP, CO_NMT_CS_ENTER_PREOP, CO_NMT_CS_RESET_NODE or CO_NMT_CS_RESET_COMM).
Returns
a pointer to the next state.

Definition at line 422 of file nmt.c.

◆ on_boot

co_nmt_state_t*(* __co_nmt_state::on_boot) (co_nmt_t *nmt, co_unsigned8_t id, co_unsigned8_t st, char es)

A pointer to the transition function invoked when an 'boot slave' process completes.

Parameters
nmta pointer to an NMT master service.
idthe node-ID of the slave.
stthe state of the node (including the toggle bit).
esthe error status (in the range ['A'..'O'], or 0 on success).
Returns
a pointer to the next state.

Definition at line 436 of file nmt.c.


The documentation for this struct was generated from the following file: