Lely core libraries  2.2.5
__co_lss_state Struct Reference

A CANopen LSS state. More...

Collaboration diagram for __co_lss_state:

Data Fields

co_lss_state_t *(* on_enter )(co_lss_t *lss)
 A pointer to the function invoked when a new state is entered.
 
co_lss_state_t *(* on_recv )(co_lss_t *lss, const struct can_msg *msg)
 A pointer to the transition function invoked when a CAN frame has been received. More...
 
co_lss_state_t *(* on_time )(co_lss_t *lss, const struct timespec *tp)
 A pointer to the transition function invoked when a timeout occurs. More...
 
void(* on_leave )(co_lss_t *lss)
 A pointer to the function invoked when the current state is left.
 

Detailed Description

A CANopen LSS state.

Definition at line 165 of file lss.c.

Field Documentation

◆ on_recv

co_lss_state_t*(* __co_lss_state::on_recv) (co_lss_t *lss, const struct can_msg *msg)

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

Parameters
lssa pointer to an LSS service.
msga pointer to the received CAN frame.
Returns
a pointer to the next state.

Definition at line 177 of file lss.c.

◆ on_time

co_lss_state_t*(* __co_lss_state::on_time) (co_lss_t *lss, const struct timespec *tp)

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

Parameters
lssa pointer to an LSS service.
tpa pointer to the current time.
Returns
a pointer to the next state.

Definition at line 187 of file lss.c.


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