Lely core libraries 2.3.4
__co_nmt_boot_state Struct Reference

A CANopen NMT 'boot slave' state. More...

Collaboration diagram for __co_nmt_boot_state:

Data Fields

co_nmt_boot_state_t *(* on_enter )(co_nmt_boot_t *boot)
 A pointer to the function invoked when a new state is entered.
 
co_nmt_boot_state_t *(* on_recv )(co_nmt_boot_t *boot, const struct can_msg *msg)
 A pointer to the transition function invoked when a CAN frame has been received. More...
 
co_nmt_boot_state_t *(* on_time )(co_nmt_boot_t *boot, const struct timespec *tp)
 A pointer to the transition function invoked when a timeout occurs. More...
 
co_nmt_boot_state_t *(* on_dn_con )(co_nmt_boot_t *boot, co_unsigned32_t ac)
 A pointer to the transition function invoked when an SDO download request completes. More...
 
co_nmt_boot_state_t *(* on_up_con )(co_nmt_boot_t *boot, co_unsigned32_t ac, const void *ptr, size_t n)
 A pointer to the transition function invoked when an SDO upload request completes. More...
 
co_nmt_boot_state_t *(* on_cfg_con )(co_nmt_boot_t *boot, co_unsigned32_t ac)
 A pointer to the transition function invoked when an NMT 'configuration request' completes. More...
 
void(* on_leave )(co_nmt_boot_t *boot)
 A pointer to the function invoked when the current state is left.
 

Detailed Description

A CANopen NMT 'boot slave' state.

Definition at line 215 of file nmt_boot.c.

Field Documentation

◆ on_recv

co_nmt_boot_state_t *(* __co_nmt_boot_state::on_recv) (co_nmt_boot_t *boot, const struct can_msg *msg)

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

Parameters
boota pointer to a 'boot slave' service.
msga pointer to the received CAN frame.
Returns
a pointer to the next state.

Definition at line 227 of file nmt_boot.c.

◆ on_time

co_nmt_boot_state_t *(* __co_nmt_boot_state::on_time) (co_nmt_boot_t *boot, const struct timespec *tp)

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

Parameters
boota pointer to a 'boot slave' service.
tpa pointer to the current time.
Returns
a pointer to the next state.

Definition at line 237 of file nmt_boot.c.

◆ on_dn_con

co_nmt_boot_state_t *(* __co_nmt_boot_state::on_dn_con) (co_nmt_boot_t *boot, co_unsigned32_t ac)

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

Parameters
boota pointer to a 'boot slave' service.
acthe SDO abort code (0 on success).
Returns
a pointer to the next state.

Definition at line 248 of file nmt_boot.c.

◆ on_up_con

co_nmt_boot_state_t *(* __co_nmt_boot_state::on_up_con) (co_nmt_boot_t *boot, co_unsigned32_t ac, const void *ptr, size_t n)

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

Parameters
boota pointer to a 'boot slave' service.
acthe SDO abort code.
ptra pointer to the uploaded bytes.
nthe number of bytes at ptr.
Returns
a pointer to the next state.

Definition at line 261 of file nmt_boot.c.

◆ on_cfg_con

co_nmt_boot_state_t *(* __co_nmt_boot_state::on_cfg_con) (co_nmt_boot_t *boot, co_unsigned32_t ac)

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

Parameters
boota pointer to a 'boot slave' service.
acthe SDO abort code (0 on success).
Returns
a pointer to the next state.

Definition at line 272 of file nmt_boot.c.


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