tte_swes_conf_t Struct Reference

#include <tte_config.h>

List of all members.

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_trx_table
tte_message_conf_ttx_table
tte_schedule_entry_tschedule_table
tte_task_conf_ttask_table
tte_message_conf_tpcf_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

Detailed Description

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.


Member Data Documentation

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.

Note:
Currently not implemented. Set to NULL.

Definition at line 218 of file tte_config.h.

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.

Total number of receive buffers allocated for background messages.

Definition at line 200 of file tte_config.h.

Total number of transmit buffers allocated for background messages.

Definition at line 203 of file tte_config.h.

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.

Reserved for a TTE protocol extension, set to 0.

Definition at line 133 of file tte_config.h.

Defines the maximum number of ignored successive clock synchronization failures.

Definition at line 141 of file tte_config.h.

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.

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.

Duration of a single communication period in nanosecond. The schedule is repeated with this period.

Definition at line 137 of file tte_config.h.

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.

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.

Number of entries in the schedule_table.

Definition at line 150 of file tte_config.h.

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.

Number of entries in the task_table.

Definition at line 153 of file tte_config.h.

Total number of receive buffers allocated for TT messages.

Definition at line 194 of file tte_config.h.

Total number of transmit buffers allocated for TT messages.

Definition at line 197 of file tte_config.h.

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.

Number of entries in the tx_table.

Definition at line 147 of file tte_config.h.


The documentation for this struct was generated from the following file:
Generated on Tue Nov 29 14:09:19 2011 for TTEthernet Model for INET Framework by  doxygen 1.6.3