Definition in file globals.h.
Go to the source code of this file.
Data Structures | |
| struct | ec_code_msg_t |
| Code - Message pair. More... | |
Defines | |
| #define | EC_MASTER_VERSION_MAIN 1 |
| master main version | |
| #define | EC_MASTER_VERSION_SUB 0 |
| master sub version (after the dot) | |
| #define | EC_MASTER_VERSION_EXTRA "stable" |
| master extra version (just a string) | |
| #define | EC_MAX_FMMUS 16 |
| maximum number of FMMUs per slave | |
| #define | EC_EOE_TX_QUEUE_SIZE 100 |
| size of the EoE tx queue | |
| #define | EC_EOE_FREQUENCY 1000 |
| clock frequency for the EoE state machines | |
| #define | EC_FRAME_HEADER_SIZE 2 |
| size of an EtherCAT frame header | |
| #define | EC_DATAGRAM_HEADER_SIZE 10 |
| size of an EtherCAT datagram header | |
| #define | EC_DATAGRAM_FOOTER_SIZE 2 |
| size of an EtherCAT datagram footer | |
| #define | EC_SYNC_SIZE 8 |
| size of a sync manager configuration page | |
| #define | EC_FMMU_SIZE 16 |
| size of an FMMU configuration page | |
| #define | EC_MAX_DATA_SIZE |
| resulting maximum data size of a single datagram in a frame | |
| #define | EC_INFO(fmt, args...) printk(KERN_INFO "EtherCAT: " fmt, ##args) |
| Convenience macro for printing EtherCAT-specific information to syslog. | |
| #define | EC_ERR(fmt, args...) printk(KERN_ERR "EtherCAT ERROR: " fmt, ##args) |
| Convenience macro for printing EtherCAT-specific errors to syslog. | |
| #define | EC_WARN(fmt, args...) printk(KERN_WARNING "EtherCAT WARNING: " fmt, ##args) |
| Convenience macro for printing EtherCAT-specific warnings to syslog. | |
| #define | EC_DBG(fmt, args...) printk(KERN_DEBUG "EtherCAT DEBUG: " fmt, ##args) |
| Convenience macro for printing EtherCAT debug messages to syslog. | |
| #define | EC_LIT(X) #X |
| Helper macro for EC_STR(), literates a macro argument. | |
| #define | EC_STR(X) EC_LIT(X) |
| Converts a macro argument to a string. | |
| #define | EC_SYSFS_READ_ATTR(NAME) |
| Convenience macro for defining read-only SysFS attributes. | |
| #define | EC_SYSFS_READ_WRITE_ATTR(NAME) |
| Convenience macro for defining read-write SysFS attributes. | |
Functions | |
| void | ec_print_data (const uint8_t *, size_t) |
| Outputs frame contents for debugging purposes. | |
| void | ec_print_data_diff (const uint8_t *, const uint8_t *, size_t) |
| Outputs frame contents and differences for debugging purposes. | |
| void | ec_print_states (uint8_t) |
| Prints slave states in clear text. | |
|
|
Value: (ETH_DATA_LEN - EC_FRAME_HEADER_SIZE \ - EC_DATAGRAM_HEADER_SIZE - EC_DATAGRAM_FOOTER_SIZE)
|
|
|
Convenience macro for printing EtherCAT-specific information to syslog. This will print the message in fmt with a prefixed "EtherCAT: ".
|
|
|
Convenience macro for printing EtherCAT-specific errors to syslog. This will print the message in fmt with a prefixed "EtherCAT ERROR: ".
|
|
|
Convenience macro for printing EtherCAT-specific warnings to syslog. This will print the message in fmt with a prefixed "EtherCAT WARNING: ".
|
|
|
Convenience macro for printing EtherCAT debug messages to syslog. This will print the message in fmt with a prefixed "EtherCAT DEBUG: ".
|
|
|
Helper macro for EC_STR(), literates a macro argument.
|
|
|
Converts a macro argument to a string.
|
|
|
Value: static struct attribute attr_##NAME = { \ .name = EC_STR(NAME), .owner = THIS_MODULE, .mode = S_IRUGO \ } This results in creating a static variable called attr_NAME. The SysFS file will be world-readable.
|
|
|
Value: static struct attribute attr_##NAME = { \ .name = EC_STR(NAME), .owner = THIS_MODULE, .mode = S_IRUGO | S_IWUSR \ } This results in creating a static variable called attr_NAME. The SysFS file will be word-readable plus owner-writable.
|
1.4.6