equal
deleted
inserted
replaced
86 /** Constructor. |
86 /** Constructor. |
87 */ |
87 */ |
88 void ec_datagram_init(ec_datagram_t *datagram /**< EtherCAT datagram. */) |
88 void ec_datagram_init(ec_datagram_t *datagram /**< EtherCAT datagram. */) |
89 { |
89 { |
90 INIT_LIST_HEAD(&datagram->queue); // mark as unqueued |
90 INIT_LIST_HEAD(&datagram->queue); // mark as unqueued |
|
91 datagram->device_index = EC_DEVICE_MAIN; |
91 datagram->type = EC_DATAGRAM_NONE; |
92 datagram->type = EC_DATAGRAM_NONE; |
92 memset(datagram->address, 0x00, EC_ADDR_LEN); |
93 memset(datagram->address, 0x00, EC_ADDR_LEN); |
93 datagram->data = NULL; |
94 datagram->data = NULL; |
94 datagram->data_origin = EC_ORIG_INTERNAL; |
95 datagram->data_origin = EC_ORIG_INTERNAL; |
95 datagram->mem_size = 0; |
96 datagram->mem_size = 0; |