update 2016-11-02 b1

1. created project
2. initialized ir encode and decode source files
This commit is contained in:
strawmanbobi
2016-11-02 22:29:13 +08:00
commit 2d43854e21
57 changed files with 11062 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
/**************************************************************************************************
Filename: irda_utils.c
Revised: Date: 2015-08-26
Revision: Revision: 1.0
Description: This file provides generic utils for UCON IRDA algorithms
Copyright 2014-2016 UCON Tech all rights reserved
Revision log:
* 2015-08-01: created by strawmanbobi
**************************************************************************************************/
#include "irda_defs.h"
#include "ucon_decode.h"
#ifndef _IRDA_UTILS_H_
#define _IRDA_UTILS_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include <stdio.h>
extern void string_to_hex(UINT8 *p, ac_hex *pac_hex, UINT16 len);
extern void string_to_intArray(UINT8 *p, UINT8 *binary_code, UINT16 len);
extern void string_to_hex_common(UINT8 *p, UINT8 *hex_data, UINT16 len);
extern BOOL isin(UINT8 array[], UINT8 value, UINT8 len);
extern void hex_byte_to_double_char(char* dest, UINT8 length, UINT8 src);
#ifdef __cplusplus
}
#endif
#endif // _IRDA_UTILS_H_