IgH EtherCAT Master  1.5.3
ec_fsm_foe Struct Reference

Finite state machines for the CANopen-over-EtherCAT protocol. More...

Data Fields

ec_slave_tslave
 Slave the FSM runs on. More...
 
unsigned int retries
 Retries upon datagram timeout.
 
void(* state )(ec_fsm_foe_t *, ec_datagram_t *)
 FoE state function. More...
 
ec_datagram_tdatagram
 Datagram used in previous step. More...
 
unsigned long jiffies_start
 FoE timestamp. More...
 
uint8_t subindex
 Current subindex. More...
 
ec_foe_request_trequest
 FoE request. More...
 
uint8_t toggle
 Toggle bit for segment commands. More...
 
uint8_t * tx_buffer
 Buffer with data to transmit. More...
 
uint32_t tx_buffer_size
 Size of data to transmit. More...
 
uint32_t tx_buffer_offset
 Offset of data to tranmit next. More...
 
uint32_t tx_last_packet
 Current packet is last one to send. More...
 
uint32_t tx_packet_no
 FoE packet number. More...
 
uint32_t tx_current_size
 Size of current packet to send. More...
 
uint8_t * tx_filename
 Name of file to transmit. More...
 
uint32_t tx_filename_len
 Lenth of transmit file name. More...
 
uint8_t * rx_buffer
 Buffer for received data. More...
 
uint32_t rx_buffer_size
 Size of receive buffer. More...
 
uint32_t rx_buffer_offset
 Offset in receive buffer. More...
 
uint32_t rx_expected_packet_no
 Expected receive packet number. More...
 
uint32_t rx_last_packet
 Current packet is the last to receive. More...
 
uint8_t * rx_filename
 Name of the file to receive. More...
 
uint32_t rx_filename_len
 Length of the receive file name. More...
 

Detailed Description

Finite state machines for the CANopen-over-EtherCAT protocol.

Definition at line 53 of file fsm_foe.h.

Field Documentation

◆ slave

ec_slave_t* ec_fsm_foe::slave

Slave the FSM runs on.

Definition at line 54 of file fsm_foe.h.

◆ state

void(* ec_fsm_foe::state) (ec_fsm_foe_t *, ec_datagram_t *)

FoE state function.

Definition at line 57 of file fsm_foe.h.

◆ datagram

ec_datagram_t* ec_fsm_foe::datagram

Datagram used in previous step.

Definition at line 58 of file fsm_foe.h.

◆ jiffies_start

unsigned long ec_fsm_foe::jiffies_start

FoE timestamp.

Definition at line 59 of file fsm_foe.h.

◆ subindex

uint8_t ec_fsm_foe::subindex

Current subindex.

Definition at line 60 of file fsm_foe.h.

◆ request

ec_foe_request_t* ec_fsm_foe::request

FoE request.

Definition at line 61 of file fsm_foe.h.

◆ toggle

uint8_t ec_fsm_foe::toggle

Toggle bit for segment commands.

Definition at line 62 of file fsm_foe.h.

◆ tx_buffer

uint8_t* ec_fsm_foe::tx_buffer

Buffer with data to transmit.

Definition at line 64 of file fsm_foe.h.

◆ tx_buffer_size

uint32_t ec_fsm_foe::tx_buffer_size

Size of data to transmit.

Definition at line 65 of file fsm_foe.h.

◆ tx_buffer_offset

uint32_t ec_fsm_foe::tx_buffer_offset

Offset of data to tranmit next.

Definition at line 66 of file fsm_foe.h.

◆ tx_last_packet

uint32_t ec_fsm_foe::tx_last_packet

Current packet is last one to send.

Definition at line 67 of file fsm_foe.h.

◆ tx_packet_no

uint32_t ec_fsm_foe::tx_packet_no

FoE packet number.

Definition at line 68 of file fsm_foe.h.

◆ tx_current_size

uint32_t ec_fsm_foe::tx_current_size

Size of current packet to send.

Definition at line 69 of file fsm_foe.h.

◆ tx_filename

uint8_t* ec_fsm_foe::tx_filename

Name of file to transmit.

Definition at line 70 of file fsm_foe.h.

◆ tx_filename_len

uint32_t ec_fsm_foe::tx_filename_len

Lenth of transmit file name.

Definition at line 71 of file fsm_foe.h.

◆ rx_buffer

uint8_t* ec_fsm_foe::rx_buffer

Buffer for received data.

Definition at line 73 of file fsm_foe.h.

◆ rx_buffer_size

uint32_t ec_fsm_foe::rx_buffer_size

Size of receive buffer.

Definition at line 74 of file fsm_foe.h.

◆ rx_buffer_offset

uint32_t ec_fsm_foe::rx_buffer_offset

Offset in receive buffer.

Definition at line 75 of file fsm_foe.h.

◆ rx_expected_packet_no

uint32_t ec_fsm_foe::rx_expected_packet_no

Expected receive packet number.

Definition at line 76 of file fsm_foe.h.

◆ rx_last_packet

uint32_t ec_fsm_foe::rx_last_packet

Current packet is the last to receive.

Definition at line 77 of file fsm_foe.h.

◆ rx_filename

uint8_t* ec_fsm_foe::rx_filename

Name of the file to receive.

Definition at line 78 of file fsm_foe.h.

◆ rx_filename_len

uint32_t ec_fsm_foe::rx_filename_len

Length of the receive file name.

Definition at line 79 of file fsm_foe.h.