ec_foe.h 667 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2025, sakumisu
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef EC_FOE_H
  7. #define EC_FOE_H
  8. int ec_foe_write(ec_master_t *master,
  9. uint16_t slave_index,
  10. ec_datagram_t *datagram,
  11. const char *filename,
  12. uint32_t password,
  13. const void *buf,
  14. uint32_t size);
  15. int ec_foe_read(ec_master_t *master,
  16. uint16_t slave_index,
  17. ec_datagram_t *datagram,
  18. const char *filename,
  19. uint32_t password,
  20. void *buf,
  21. uint32_t maxsize,
  22. uint32_t *size);
  23. #endif