12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // Created by DELL on 2024/10/16.
- //
- #ifndef GMV_GATEWAY_BOARD_FFX_MASTER_H
- #define GMV_GATEWAY_BOARD_FFX_MASTER_H
- #include "main.h"
- #define SLAVE_ADDRESS_START 1 // 从机地址起始
- #define SLAVE_ADDRESS_END 8 // 从机地址结束
- #define POWER_FFX_ADDRESS 0 //开关机状态
- #define SET_TEMP_FFX_ADDRESS 0x0E //设定温度
- #define FAN_SPEED_FFX_ADDRESS 0x4 //风扇转速
- #define INNER_NUM_FFX_ADDRESS 0x59 //线控器设定内机号地址
- #define INNER_REG_ADDRESS 5
- typedef struct
- {
- uint8_t power;
- uint8_t mode;
- uint8_t fresh_air_system;
- uint8_t fan_speed;
- uint8_t set_temp;
- uint8_t inner_num;
- uint8_t humidity_on;
- uint8_t humidity_off;
- } ffx_status_t;
- /**
- * init ffx master
- */
- void ffx_master_init();
- #endif //GMV_GATEWAY_BOARD_FFX_MASTER_H
|