096111e983
.claude/ 제외(.gitignore 추가). 기존 초기커밋(5a96a69) 위에 신규·수정·이동분 커밋.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
129 lines
2.5 KiB
C
129 lines
2.5 KiB
C
|
|
|
|
|
|
|
|
void Display_update(void);
|
|
void Display_process(void);
|
|
void Initial_Signal();
|
|
void Disp_Segdata(uint8_t Sel, uint8_t digit4,uint8_t digit3, uint8_t digit2, uint8_t digit1);
|
|
void Led_OnOff(uint8_t kind, uint8_t onoff);
|
|
|
|
void delay_ms(uint32_t ms);
|
|
void delay_us(uint32_t us);
|
|
void PowerDownFunction(void);
|
|
void GPIO_Init(void);
|
|
void PWM_Init(void);
|
|
void Timer0_Init(void);
|
|
void Timer1_Init(void);
|
|
void Timer2_Init(void);
|
|
void SYS_Init(void);
|
|
void UART0_Init(void);
|
|
void UART1_Init(void);
|
|
void SC0_Init();
|
|
void SC1_Init();
|
|
void ADC_Init(void);
|
|
|
|
|
|
void Processor_Init(void);
|
|
void Error_process(void);
|
|
void Test_exit_process(void);
|
|
void Test_vsp_into_process(void);
|
|
|
|
void Touch_process(void);
|
|
void power_off_process(void);
|
|
void power_on_process(void);
|
|
void power_on_process_by_roomcon(void); //iot
|
|
void power_off_process_by_roomcon(void);
|
|
|
|
|
|
void IR_Remocon_process(void);
|
|
|
|
extern uint8_t touch_i2c_read(uint8_t index, uint8_t *value);
|
|
extern uint8_t touch_i2c_write(uint8_t index, uint8_t d);
|
|
extern void touch_i2c_init();
|
|
|
|
|
|
extern void Melody_process(void);
|
|
|
|
|
|
|
|
void Air_Quality_process(void);
|
|
|
|
void com_rs485_process(void);
|
|
void Tx_Main_process(void);
|
|
|
|
void Rx_rs485_Check(uint8_t data);
|
|
|
|
void Rx_Main_Parsing(void);
|
|
void Rx_Sensor_Parsing(void);
|
|
|
|
|
|
void Rx_wifi_Check(uint8_t data);
|
|
void Rx_wifi_Parsing(void);
|
|
|
|
uint8_t CheckSum_Creator(uint8_t *buf, uint8_t len);
|
|
|
|
#define TX_EVENT 0x10
|
|
|
|
#define MELODY_OFF 0
|
|
#define MELODY_POWER_ON 1
|
|
#define MELODY_POWER_OFF 2
|
|
#define MELODY_TOUCH 3
|
|
#define MELODY_NG 4
|
|
|
|
|
|
#define MODE_OFF 0
|
|
#define MODE_VENT 1
|
|
#define MODE_AUTO 2
|
|
#define MODE_AIR_CLEAN 3
|
|
#define MODE_BYPASS 4
|
|
|
|
|
|
#define ERROR_SA 0x0040
|
|
#define ERROR_EA 0x0080
|
|
#define ERROR_FILTER_CLEAN 0x0001 // FILTER & SOJA
|
|
#define ERROR_FILTER_CHANGE 0x0002
|
|
#define ERROR_SOJA_CHANGE 0x0004
|
|
#define ERROR_IN_COM 0x0010
|
|
#define ERROR_OUT_COM 0x0020
|
|
#define ERROR_TEMP 0x0800
|
|
#define ERROR_HUMI 0x1000
|
|
#define ERROR_TVOC 0x2000
|
|
#define ERROR_DUST 0x4000
|
|
#define ERROR_CO2 0x8000
|
|
|
|
|
|
|
|
#define EVENT_POWER 0x01
|
|
#define EVENT_MODE 0x02
|
|
#define EVENT_WIND 0x04
|
|
#define EVENT_TIME 0x08
|
|
|
|
#define TX_DATA_MODE_NORMAL 0x00
|
|
#define TX_DATA_MODE_REQUEST1 0x01
|
|
#define TX_DATA_MODE_REQUEST2 0x02
|
|
#define TX_DATA_MODE_REQUEST3 0x03
|
|
#define TX_DATA_MODE_SETTING 0x10
|
|
|
|
|
|
#define ROOMCON_VERSION 0x01
|
|
#define CO2_VERSION 0x01
|
|
|
|
|
|
#define EEP_ADDR_START 0x01
|
|
#define EEP_ADDR_MODBUS_ID 0x05
|
|
|
|
|
|
// S1000
|
|
#define WIND_CMH_0 0
|
|
#define WIND_CMH_1 400
|
|
#define WIND_CMH_2 750
|
|
#define WIND_CMH_3 1000
|
|
|
|
|
|
|
|
#define ROOMCON_FW_VERSION 22
|
|
extern uint8_t Main_BxD_FW_Version[3];
|
|
extern uint8_t Sensor_BxD_Version;
|
|
|