Lely core libraries  2.3.4
__co_csdo_state Struct Reference

A CANopen Client-SDO state. More...

Collaboration diagram for __co_csdo_state:

Data Fields

co_csdo_state_t *(* on_enter )(co_csdo_t *sdo)
 A pointer to the function invoked when a new state is entered.
 
co_csdo_state_t *(* on_abort )(co_csdo_t *sdo, co_unsigned32_t ac)
 A pointer to the transition function invoked when an abort code has been received. More...
 
co_csdo_state_t *(* on_time )(co_csdo_t *sdo, const struct timespec *tp)
 A pointer to the transition function invoked when a timeout occurs. More...
 
co_csdo_state_t *(* on_recv )(co_csdo_t *sdo, const struct can_msg *msg)
 A pointer to the transition function invoked when a CAN frame has been received. More...
 
void(* on_leave )(co_csdo_t *sdo)
 A pointer to the function invoked when the current state is left.
 

Detailed Description

A CANopen Client-SDO state.

Definition at line 205 of file csdo.c.

Field Documentation

◆ on_abort

co_csdo_state_t*(* __co_csdo_state::on_abort) (co_csdo_t *sdo, co_unsigned32_t ac)

A pointer to the transition function invoked when an abort code has been received.

Parameters
sdoa pointer to a Client-SDO service.
acthe abort code.
Returns
a pointer to the next state.

Definition at line 217 of file csdo.c.

◆ on_time

co_csdo_state_t*(* __co_csdo_state::on_time) (co_csdo_t *sdo, const struct timespec *tp)

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

Parameters
sdoa pointer to a Client-SDO service.
tpa pointer to the current time.
Returns
a pointer to the next state.

Definition at line 226 of file csdo.c.

◆ on_recv

co_csdo_state_t*(* __co_csdo_state::on_recv) (co_csdo_t *sdo, const struct can_msg *msg)

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

Parameters
sdoa pointer to a Client-SDO service.
msga pointer to the received CAN frame.
Returns
a pointer to the next state.

Definition at line 236 of file csdo.c.


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