summaryrefslogtreecommitdiff
path: root/irmp.h
diff options
context:
space:
mode:
authorukw2011-09-06 14:39:56 +0000
committerukw2011-09-06 14:39:56 +0000
commit1f54e86cd05ee6e47b5da32107d191f0983ccf04 (patch)
tree2f83df74aad4457c72b09af6ec8d6281e109428c /irmp.h
parenteae64c5616142a359508a863c3f8f30f97d21daf (diff)
downloadirmp-1f54e86cd05ee6e47b5da32107d191f0983ccf04.zip
version 2.0.0-pre6: added support for ATtiny85, removed support for codevision, added protocol names for logging etc.
git-svn-id: svn://mikrocontroller.net/irmp@76 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
Diffstat (limited to 'irmp.h')
-rw-r--r--irmp.h36
1 files changed, 9 insertions, 27 deletions
diff --git a/irmp.h b/irmp.h
index 6198263..fdb2c95 100644
--- a/irmp.h
+++ b/irmp.h
@@ -17,11 +17,6 @@
#ifndef _WC_IRMP_H_
#define _WC_IRMP_H_
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
/*---------------------------------------------------------------------------------------------------------------------------------------------------
* timing constants:
*---------------------------------------------------------------------------------------------------------------------------------------------------
@@ -79,6 +74,9 @@ typedef uint8_t PAUSE_LEN;
#define IRMP_LEGO_PROTOCOL 29 // LEGO Power Functions RC
#define IRMP_THOMSON_PROTOCOL 30 // Thomson
#define IRMP_MERLIN_PROTOCOL 31 // Pollin Merlin keyboard (bitserial)
+
+#define IRMP_N_PROTOCOLS 31 // number of supported protocols
+
#define IRMP_IMON_PROTOCOL 99 // Imon (bitserial) PROTOTYPE!
// some flags of struct IRMP_PARAMETER:
@@ -527,29 +525,13 @@ typedef struct
uint8_t flags; // flags, e.g. repetition
} IRMP_DATA;
+extern void irmp_init (void);
+extern uint8_t irmp_get_data (IRMP_DATA *);
+extern uint8_t irmp_is_busy (void);
+extern uint8_t irmp_ISR (void);
-/**
- * Initialize IRMP decoder
- * @details Configures IRMP input pin
- */
-extern void irmp_init (void);
-
-/**
- * Get IRMP data
- * @details gets decoded IRMP data
- * @param pointer in order to store IRMP data
- * @return TRUE: successful, FALSE: failed
- */
-extern uint8_t irmp_get_data (IRMP_DATA *);
-
-/**
- * ISR routine
- * @details ISR routine, called 10000 times per second
- */
-extern uint8_t irmp_ISR (void);
-
-#ifdef __cplusplus
-}
+#if IRMP_PROTOCOL_NAMES == 1
+extern char * irmp_protocol_names[IRMP_N_PROTOCOLS + 1];
#endif
#endif /* _WC_IRMP_H_ */