ec_coe.h 778 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2025, sakumisu
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef EC_COE_H
  7. #define EC_COE_H
  8. int ec_coe_download(ec_master_t *master,
  9. uint16_t slave_index,
  10. ec_datagram_t *datagram,
  11. uint16_t index,
  12. uint8_t subindex,
  13. const void *buf,
  14. uint32_t size,
  15. bool complete_access);
  16. int ec_coe_upload(ec_master_t *master,
  17. uint16_t slave_index,
  18. ec_datagram_t *datagram,
  19. uint16_t index,
  20. uint8_t subindex,
  21. const void *buf,
  22. uint32_t maxsize,
  23. uint32_t *size,
  24. bool complete_access);
  25. #endif