equal
deleted
inserted
replaced
8 * |
8 * |
9 *****************************************************************************/ |
9 *****************************************************************************/ |
10 |
10 |
11 #ifndef _EC_GLOBALS_ |
11 #ifndef _EC_GLOBALS_ |
12 #define _EC_GLOBALS_ |
12 #define _EC_GLOBALS_ |
|
13 |
|
14 #include <linux/types.h> |
13 |
15 |
14 /*****************************************************************************/ |
16 /*****************************************************************************/ |
15 |
17 |
16 // EtherCAT-Protokoll |
18 // EtherCAT-Protokoll |
17 #define EC_MAX_FRAME_SIZE 1500 /**< Maximale Größe eines EtherCAT-Frames ohne |
19 #define EC_MAX_FRAME_SIZE 1500 /**< Maximale Größe eines EtherCAT-Frames ohne |
28 - EC_COMMAND_HEADER_SIZE \ |
30 - EC_COMMAND_HEADER_SIZE \ |
29 - EC_COMMAND_FOOTER_SIZE) /**< Maximale Datengröße |
31 - EC_COMMAND_FOOTER_SIZE) /**< Maximale Datengröße |
30 bei einem Kommando pro |
32 bei einem Kommando pro |
31 Frame */ |
33 Frame */ |
32 |
34 |
|
35 /*****************************************************************************/ |
|
36 |
33 #define EC_INFO(fmt, args...) \ |
37 #define EC_INFO(fmt, args...) \ |
34 printk(KERN_INFO "EtherCAT: " fmt, ##args) |
38 printk(KERN_INFO "EtherCAT: " fmt, ##args) |
35 #define EC_ERR(fmt, args...) \ |
39 #define EC_ERR(fmt, args...) \ |
36 printk(KERN_ERR "EtherCAT ERROR: " fmt, ##args) |
40 printk(KERN_ERR "EtherCAT ERROR: " fmt, ##args) |
37 #define EC_WARN(fmt, args...) \ |
41 #define EC_WARN(fmt, args...) \ |
39 #define EC_DBG(fmt, args...) \ |
43 #define EC_DBG(fmt, args...) \ |
40 printk(KERN_DEBUG "EtherCAT DEBUG: " fmt, ##args) |
44 printk(KERN_DEBUG "EtherCAT DEBUG: " fmt, ##args) |
41 |
45 |
42 /*****************************************************************************/ |
46 /*****************************************************************************/ |
43 |
47 |
|
48 extern void ec_print_data(const uint8_t *, size_t); |
|
49 extern void ec_print_data_diff(const uint8_t *, const uint8_t *, size_t); |
|
50 |
|
51 /*****************************************************************************/ |
|
52 |
44 #endif |
53 #endif |
45 |
54 |
46 /* Emacs-Konfiguration |
55 /* Emacs-Konfiguration |
47 ;;; Local Variables: *** |
56 ;;; Local Variables: *** |
48 ;;; c-basic-offset:4 *** |
57 ;;; c-basic-offset:4 *** |