Lely core libraries  2.3.4
__co_nmt_cfg_state Struct Reference

A CANopen NMT 'configuration request' state. More...

Collaboration diagram for __co_nmt_cfg_state:

Data Fields

co_nmt_cfg_state_t *(* on_enter )(co_nmt_cfg_t *cfg)
 A pointer to the function invoked when a new state is entered.
 
co_nmt_cfg_state_t *(* on_recv )(co_nmt_cfg_t *cfg, const struct can_msg *msg)
 A pointer to the transition function invoked when a CAN frame has been received. More...
 
co_nmt_cfg_state_t *(* on_time )(co_nmt_cfg_t *cfg, const struct timespec *tp)
 A pointer to the transition function invoked when a timeout occurs. More...
 
co_nmt_cfg_state_t *(* on_res )(co_nmt_cfg_t *cfg, co_unsigned32_t ac)
 A pointer to the transition function invoked when an NMT'update configuration' step completes. More...
 
co_nmt_cfg_state_t *(* on_dn_con )(co_nmt_cfg_t *cfg, co_unsigned16_t idx, co_unsigned8_t subidx, co_unsigned32_t ac)
 A pointer to the transition function invoked when an SDO download request completes. More...
 
void(* on_leave )(co_nmt_cfg_t *cfg)
 A pointer to the function invoked when the current state is left.
 

Detailed Description

A CANopen NMT 'configuration request' state.

Definition at line 156 of file nmt_cfg.c.

Field Documentation

◆ on_recv

co_nmt_cfg_state_t*(* __co_nmt_cfg_state::on_recv) (co_nmt_cfg_t *cfg, const struct can_msg *msg)

A pointer to the transition function invoked when a CAN frame has been received.

Parameters
cfga pointer to a 'configuration request'.
msga pointer to the received CAN frame.
Returns
a pointer to the next state.

Definition at line 168 of file nmt_cfg.c.

◆ on_time

co_nmt_cfg_state_t*(* __co_nmt_cfg_state::on_time) (co_nmt_cfg_t *cfg, const struct timespec *tp)

A pointer to the transition function invoked when a timeout occurs.

Parameters
cfga pointer to a 'configuration request'.
tpa pointer to the current time.
Returns
a pointer to the next state.

Definition at line 178 of file nmt_cfg.c.

◆ on_res

co_nmt_cfg_state_t*(* __co_nmt_cfg_state::on_res) (co_nmt_cfg_t *cfg, co_unsigned32_t ac)

A pointer to the transition function invoked when an NMT'update configuration' step completes.

Parameters
cfga pointer to a 'configuration request'.
acthe SDO abort code (0 on success).
Returns
a pointer to the next state.

Definition at line 189 of file nmt_cfg.c.

◆ on_dn_con

co_nmt_cfg_state_t*(* __co_nmt_cfg_state::on_dn_con) (co_nmt_cfg_t *cfg, co_unsigned16_t idx, co_unsigned8_t subidx, co_unsigned32_t ac)

A pointer to the transition function invoked when an SDO download request completes.

Parameters
cfga pointer to a 'configuration request'.
idxthe object index.
subidxthe object sub-index.
acthe SDO abort code (0 on success).
Returns
a pointer to the next state.

Definition at line 201 of file nmt_cfg.c.


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