ffx_master.h 581 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // Created by DELL on 2024/10/16.
  3. //
  4. #ifndef GMV_GATEWAY_BOARD_FFX_MASTER_H
  5. #define GMV_GATEWAY_BOARD_FFX_MASTER_H
  6. #include "main.h"
  7. #define SLAVE_ADDRESS_START 1
  8. #define SLAVE_ADDRESS_END 5
  9. #define POWER_REG_ADDRESS 0
  10. #define WORK_MODE_REG_ADDRESS 1
  11. #define FAN_SPEED_REG_ADDRESS 4
  12. #define SET_TEMP_REG_ADDRESS 14
  13. #define INNER_REG_ADDRESS 88
  14. typedef struct {
  15. uint8_t power;
  16. uint8_t mode;
  17. uint8_t fan_speed;
  18. uint8_t set_temp;
  19. uint8_t inner_num;
  20. }ffx_status_t;
  21. /**
  22. * init ffx master
  23. */
  24. void ffx_master_init();
  25. #endif //GMV_GATEWAY_BOARD_FFX_MASTER_H