added reverser

This commit is contained in:
2017-01-09 20:23:01 +08:00
parent 98f0ff8082
commit ee7f0fd816
28 changed files with 140 additions and 68 deletions

View File

@@ -51,5 +51,5 @@ set(SOURCE_FILES_SHARED_LIB
src/ir_decode.c
include/ir_decode.h)
# add_executable(irda_decoder ${SOURCE_FILES_EXECUTABLE})
add_library(irda_decoder SHARED ${SOURCE_FILES_SHARED_LIB})
add_executable(irda_decoder ${SOURCE_FILES_EXECUTABLE})
# add_library(irda_decoder SHARED ${SOURCE_FILES_SHARED_LIB})

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_ac_apply.h
/**************************************************************************************
Filename: ir_ac_apply.h
Revised: Date: 2016-10-12
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides methods for AC IR applying functionalities
Revision log:
* 2016-10-12: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#ifndef _IRDA_APPLY_H_
#define _IRDA_APPLY_H_

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_ac_binary_parse.h
/**************************************************************************************
Filename: ir_ac_binary_parse.h
Revised: Date: 2017-01-03
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides methods for AC binary parse
Revision log:
* 2017-01-03: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#ifndef IRDA_DECODER_IR_AC_BINARY_PARSE_H
#define IRDA_DECODER_IR_AC_BINARY_PARSE_H

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_utils.c
/**************************************************************************************
Filename: ir_utils.c
Revised: Date: 2016-10-26
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides generic utils for IR frame build
Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#ifndef _IRDA_IRFRAME_H_
#define _IRDA_IRFRAME_H_

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_ac_control.h
/**************************************************************************************
Filename: ir_ac_control.h
Revised: Date: 2016-12-31
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides methods for AC IR control
Revision log:
* 2016-10-12: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#ifndef IRDA_DECODER_IR_AC_CONTROL_H
#define IRDA_DECODER_IR_AC_CONTROL_H

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_parse_forbidden_info.h
/**************************************************************************************
Filename: ir_parse_forbidden_info.h
Revised: Date: 2016-10-05
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for forbidden area of AC code
Revision log:
* 2016-10-05: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#ifndef _IRDA_PARSE_PARSE_H_
#define _IRDA_PARSE_PARSE_H_

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_parse_frame_parameter.h
/**************************************************************************************
Filename: ir_parse_frame_parameter.h
Revised: Date: 2016-10-11
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for IR decode for AC frame paramet
Revision log:
* 2016-10-11: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#ifndef _IRDA_PARSE_FRAME_PARAMETER_H_
#define _IRDA_PARSE_FRAME_PARAMETER_H_

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_parse_ac_parameter.h
/**************************************************************************************
Filename: ir_parse_ac_parameter.h
Revised: Date: 2016-10-12
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for IR decode for AC functionality
Revision log:
* 2016-10-12: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#ifndef _IRDA_PARSE_AC_PARAMETER_H_
#define _IRDA_PARSE_AC_PARAMETER_H_

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_decode.h
/**************************************************************************************
Filename: ir_decode.h
Revised: Date: 2016-10-01
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for IR decode
Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#ifndef _IRDA_DECODE_H_
#define _IRDA_DECODE_H_

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_defs.h
/**************************************************************************************
Filename: ir_defs.h
Revised: Date: 2016-10-26
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for IR decode
Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#ifndef PARSE_IR_DEFS_H
#define PARSE_IR_DEFS_H

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_lib.h
/**************************************************************************************
Filename: ir_lib.h
Revised: Date: 2016-02-23
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for IR decode (compressed command
Revision log:
* 2016-10-21: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#ifndef _IRDA_LIB_H_
#define _IRDA_LIB_H_

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_utils.c
/**************************************************************************************
Filename: ir_utils.c
Revised: Date: 2016-10-26
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides generic utils for IRDA algorithms
Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#ifndef _IRDA_UTILS_H_
#define _IRDA_UTILS_H_

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_ac_apply.c
/**************************************************************************************
Filename: ir_ac_apply.c
Revised: Date: 2016-10-12
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides methods for AC IR applying functionalities
Revision log:
* 2016-10-12: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#include "../include/ir_utils.h"
#include "../include/ir_ac_apply.h"

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_ac_binary_parse.c
/**************************************************************************************
Filename: ir_ac_binary_parse.c
Revised: Date: 2017-01-03
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides methods for AC binary parse
Revision log:
* 2017-01-03: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#include <stdlib.h>

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_irframe.c
/**************************************************************************************
Filename: ir_irframe.c
Revised: Date: 2016-10-01
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for IR frame build
Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#include "../include/ir_ac_build_frame.h"
#include "../include/ir_decode.h"

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_ac_control.c
/**************************************************************************************
Filename: ir_ac_control.c
Revised: Date: 2017-01-02
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides methods for AC IR control
Revision log:
* 2016-10-12: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#include <stdlib.h>
#include <stdio.h>

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_parse_forbidden_info.c
/**************************************************************************************
Filename: ir_parse_forbidden_info.c
Revised: Date: 2016-10-05
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for forbidden area of AC code
Revision log:
* 2016-10-05: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#include <stdio.h>
#include <stdlib.h>

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_parse_frame_parameter.c
/**************************************************************************************
Filename: ir_parse_frame_parameter.c
Revised: Date: 2016-10-11
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for IR decode for AC frame paramet
Revision log:
* 2016-10-11: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#include <stdlib.h>
#include <stdio.h>

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_parse_ac_parameter.c
/**************************************************************************************
Filename: ir_parse_ac_parameter.c
Revised: Date: 2016-10-12
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for IR decode for AC functionality
Revision log:
* 2016-10-12: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#include <stdlib.h>
#include <stdio.h>

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_decode.c
/**************************************************************************************
Filename: ir_decode.c
Revised: Date: 2016-10-01
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for IR decode (status type)
Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#include <stdio.h>
#include <stdlib.h>

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_main.c
/**************************************************************************************
Filename: ir_main.c
Revised: Date: 2016-11-05
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides main entry for irda decoder
Revision log:
* 2016-11-05: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#include <stdio.h>

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_lib.c
/**************************************************************************************
Filename: ir_lib.c
Revised: Date: 2016-10-21
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides algorithms for IR decode (compressed command
Revision log:
* 2016-10-21: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#include <string.h>

View File

@@ -1,5 +1,5 @@
/**************************************************************************************************
Filename: irda_utils.c
/**************************************************************************************
Filename: ir_utils.c
Revised: Date: 2016-10-26
Revision: Revision: 1.0
@@ -7,7 +7,7 @@ Description: This file provides generic utils for IRDA algorithms
Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
**************************************************************************************/
#include "../include/ir_utils.h"