#include <tte_config.h>
Public Attributes | |
uint32_t | cluster_id |
uint8_t | sync_master |
uint8_t | crankshaft |
uint64_t | period_ns |
uint16_t | cs_blackout_cnt |
uint16_t | rx_table_len |
uint16_t | tx_table_len |
uint16_t | schedule_table_len |
uint16_t | task_table_len |
tte_message_conf_t * | rx_table |
tte_message_conf_t * | tx_table |
tte_schedule_entry_t * | schedule_table |
tte_task_conf_t * | task_table |
tte_message_conf_t * | pcf_conf |
void(* | init_cb )(void) |
void(* | bg_hook_cb )(void) |
void(* | app_error_cb )(int32_t tte_error_nr) |
eth_mac_addr_t | mac |
uint16_t | tt_rx_ethbufs |
uint16_t | tt_tx_ethbufs |
uint16_t | bg_rx_ethbufs |
uint16_t | bg_tx_ethbufs |
uint16_t | tx_maxbufsize |
void(* | app_dcl_cb )(uint8_t *frame, uint8_t opcode) |
void(* | app_get_node_id )(uint16_t *tte_node_id) |
uint8_t | promisc |
uint64_t | max_sched_delay_ns |
uint32_t * | ic_lookup |
int8_t | ic_lookup_len |
Software-based ES configuration table. This structure can be used as argument to tte_configure() when it is encapsulated in the tte_conf_t structure.
Definition at line 122 of file tte_config.h.
void(* tte_swes_conf_t::app_dcl_cb)(uint8_t *frame, uint8_t opcode) |
Reserved for a TTE protocol extension, set to NULL
.
Definition at line 209 of file tte_config.h.
void(* tte_swes_conf_t::app_error_cb)(int32_t tte_error_nr) |
Address of the error callback. This callback is executed when the TTE protocol layer detects a fatal error. The protocol core is stopped until the application starts it via tte_start(). Set this to NULL
to disable the callback.
Definition at line 187 of file tte_config.h.
void(* tte_swes_conf_t::app_get_node_id)(uint16_t *tte_node_id) |
Address of the configuration callback. This callback is executed when the TTE protocol layer loads a new configuration. It should return the index of the configuration within the tte_conf table. Set this to NULL
to disable the callback: the index 0 is used in such case.
NULL
. Definition at line 218 of file tte_config.h.
void(* tte_swes_conf_t::bg_hook_cb)(void) |
Address of the background task callback. This callback is executed when there is no user-space interface linked to the TTE protocol layer and the protocol layer is idle. Set this to NULL
to disable the callback.
Definition at line 181 of file tte_config.h.
uint16_t tte_swes_conf_t::bg_rx_ethbufs |
Total number of receive buffers allocated for background messages.
Definition at line 200 of file tte_config.h.
uint16_t tte_swes_conf_t::bg_tx_ethbufs |
Total number of transmit buffers allocated for background messages.
Definition at line 203 of file tte_config.h.
uint32_t tte_swes_conf_t::cluster_id |
Critical traffic identifier. A message belongs to the critical traffic class (TT/RC) if the highest 32 bits of destination MAC address match this field.
Definition at line 126 of file tte_config.h.
uint8_t tte_swes_conf_t::crankshaft |
Reserved for a TTE protocol extension, set to 0.
Definition at line 133 of file tte_config.h.
uint16_t tte_swes_conf_t::cs_blackout_cnt |
Defines the maximum number of ignored successive clock synchronization failures.
Definition at line 141 of file tte_config.h.
uint32_t* tte_swes_conf_t::ic_lookup |
Integration cycle lookup table
Definition at line 228 of file tte_config.h.
Definition at line 229 of file tte_config.h.
void(* tte_swes_conf_t::init_cb)(void) |
Address of the protocol init callback. This callback is executed when the TTE protocol layer is fully initialized and ready to transmit/receive messages. Set this to NULL
to disable the callback.
Definition at line 175 of file tte_config.h.
eth_mac_addr_t tte_swes_conf_t::mac |
MAC address of this node. This address is used as the source address when TT messages are transmitted.
Definition at line 191 of file tte_config.h.
uint64_t tte_swes_conf_t::max_sched_delay_ns |
Maximum allowed delay of scheduled actions in nanoseconds. The scheduler will report a warning if a scheduled action starts with a larger latency.
Definition at line 225 of file tte_config.h.
Address of the protocol control frame (PCF) configuration. This usually links to an entry in rx_table or tx_table.
Definition at line 169 of file tte_config.h.
uint64_t tte_swes_conf_t::period_ns |
Duration of a single communication period in nanosecond. The schedule is repeated with this period.
Definition at line 137 of file tte_config.h.
uint8_t tte_swes_conf_t::promisc |
Start the network device in promisc mode (1) or in unicast/multicast mode (0).
Definition at line 221 of file tte_config.h.
Address of the RX table.
Definition at line 156 of file tte_config.h.
uint16_t tte_swes_conf_t::rx_table_len |
Number of entries in the rx_table.
Definition at line 144 of file tte_config.h.
Address of the schedule table
Definition at line 162 of file tte_config.h.
uint16_t tte_swes_conf_t::schedule_table_len |
Number of entries in the schedule_table.
Definition at line 150 of file tte_config.h.
uint8_t tte_swes_conf_t::sync_master |
Enable synchronization master functionality when this field is set to '1', act as slave when the field is '0'.
Definition at line 130 of file tte_config.h.
Address of the task table
Definition at line 165 of file tte_config.h.
uint16_t tte_swes_conf_t::task_table_len |
Number of entries in the task_table.
Definition at line 153 of file tte_config.h.
uint16_t tte_swes_conf_t::tt_rx_ethbufs |
Total number of receive buffers allocated for TT messages.
Definition at line 194 of file tte_config.h.
uint16_t tte_swes_conf_t::tt_tx_ethbufs |
Total number of transmit buffers allocated for TT messages.
Definition at line 197 of file tte_config.h.
uint16_t tte_swes_conf_t::tx_maxbufsize |
Size of a single transmit buffer (minimum is 1518).
Definition at line 206 of file tte_config.h.
Address of the TX table.
Definition at line 159 of file tte_config.h.
uint16_t tte_swes_conf_t::tx_table_len |
Number of entries in the tx_table.
Definition at line 147 of file tte_config.h.