added decode combo function for jni call

This commit is contained in:
strawmanbobi
2019-03-04 23:40:49 +08:00
parent f97f487901
commit 1f2aae5b0b
5 changed files with 115 additions and 1 deletions

View File

@@ -153,6 +153,12 @@ extern INT8 get_supported_wind_direction(UINT8 *supported_wind_direction);
extern void ir_lib_free_inner_buffer();
#endif
// this function is preferred being called by JNI only
UINT16 ir_decode_combo(const UINT8 category, const UINT8 sub_category,
UINT8* binary, UINT16 binary_length,
UINT8 key_code, UINT16* user_data,
t_remote_ac_status* ac_status, BOOL change_wind_direction);
#ifdef __cplusplus
}
#endif

View File

@@ -32,6 +32,11 @@ extern "C"
#define FORMAT_HEX 16
#define FORMAT_DECIMAL 10
// #define USE_DYNAMIC_TAG 1
#if defined USE_DYNAMIC_TAG
#include <stdlib.h>
#endif
typedef unsigned char UINT8;
typedef signed char INT8;
@@ -60,6 +65,7 @@ void noprint(const char *fmt, ...);
#define ir_printf noprint
#endif
#define USER_DATA_SIZE 1636
// #define USER_DATA_SIZE 4096
#ifdef __cplusplus
}