2017-01-09 20:23:01 +08:00
|
|
|
/**************************************************************************************
|
|
|
|
|
Filename: ir_ac_apply.h
|
2017-01-02 18:38:22 +08:00
|
|
|
Revised: Date: 2016-10-12
|
|
|
|
|
Revision: Revision: 1.0
|
|
|
|
|
|
|
|
|
|
Description: This file provides methods for AC IR applying functionalities
|
|
|
|
|
|
|
|
|
|
Revision log:
|
|
|
|
|
* 2016-10-12: created by strawmanbobi
|
2017-01-09 20:23:01 +08:00
|
|
|
**************************************************************************************/
|
2017-01-02 18:38:22 +08:00
|
|
|
|
2020-03-08 19:41:00 +08:00
|
|
|
#ifndef _IR_APPLY_H_
|
|
|
|
|
#define _IR_APPLY_H_
|
|
|
|
|
|
2020-07-26 20:49:42 +08:00
|
|
|
#if defined (BOARD_PC)
|
2020-03-08 19:41:00 +08:00
|
|
|
#pragma ide diagnostic ignored "OCUnusedMacroInspection"
|
2020-07-26 20:49:42 +08:00
|
|
|
#endif
|
2017-01-02 18:38:22 +08:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C"
|
|
|
|
|
{
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "ir_decode.h"
|
|
|
|
|
|
2018-01-19 19:21:28 +08:00
|
|
|
#define MIN_TAG_LENGTH_TYPE_1 4
|
|
|
|
|
#define MIN_TAG_LENGTH_TYPE_2 6
|
|
|
|
|
|
2017-10-13 15:24:37 +08:00
|
|
|
INT8 apply_power(t_remote_ac_status ac_status, UINT8 function_code);
|
2017-01-02 18:38:22 +08:00
|
|
|
|
2017-10-13 15:24:37 +08:00
|
|
|
INT8 apply_mode(t_remote_ac_status ac_status, UINT8 function_code);
|
2017-01-02 18:38:22 +08:00
|
|
|
|
2017-10-13 15:24:37 +08:00
|
|
|
INT8 apply_wind_speed(t_remote_ac_status ac_status, UINT8 function_code);
|
2017-01-02 18:38:22 +08:00
|
|
|
|
2017-10-13 15:24:37 +08:00
|
|
|
INT8 apply_swing(t_remote_ac_status ac_status, UINT8 function_code);
|
2017-01-02 18:38:22 +08:00
|
|
|
|
2017-10-13 15:24:37 +08:00
|
|
|
INT8 apply_temperature(t_remote_ac_status ac_status, UINT8 function_code);
|
2017-01-02 18:38:22 +08:00
|
|
|
|
|
|
|
|
INT8 apply_function(struct ac_protocol *protocol, UINT8 function);
|
|
|
|
|
|
|
|
|
|
INT8 apply_checksum(struct ac_protocol *protocol);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-03-08 19:41:00 +08:00
|
|
|
#endif // _IR_APPLY_H_
|