Minor changes.
This commit is contained in:
parent
85bd5d131d
commit
cb123b86ae
|
|
@ -145,6 +145,8 @@ int ecrt_domain_state(ec_domain_t *domain);
|
|||
* Slave Methods
|
||||
*****************************************************************************/
|
||||
|
||||
/* there SDO functions are deprecated! */
|
||||
|
||||
int ecrt_slave_sdo_read_exp8(ec_slave_t *slave, uint16_t sdo_index,
|
||||
uint8_t sdo_subindex, uint8_t *value);
|
||||
int ecrt_slave_sdo_read_exp16(ec_slave_t *slave, uint16_t sdo_index,
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ uint8_t *ec_slave_mbox_prepare_send(ec_slave_t *slave, /**< slave */
|
|||
|
||||
EC_WRITE_U16(command->data, size); // mailbox service data length
|
||||
EC_WRITE_U16(command->data + 2, slave->station_address); // station address
|
||||
EC_WRITE_U8 (command->data + 4, 0x00); // hhannel & priority
|
||||
EC_WRITE_U8 (command->data + 4, 0x00); // channel & priority
|
||||
EC_WRITE_U8 (command->data + 5, type); // underlying protocol type
|
||||
|
||||
return command->data + 6;
|
||||
|
|
|
|||
Loading…
Reference in New Issue