summaryrefslogtreecommitdiff
path: root/irsnd.h
diff options
context:
space:
mode:
authorukw2011-05-20 09:32:31 +0000
committerukw2011-05-20 09:32:31 +0000
commitbeda975f4477b6788b682aaf6695c8bbc2d33161 (patch)
tree8d30e2e76e8ee798548a31570f4b51677ac30a2f /irsnd.h
parent31c1f035d79f12406325e9c0b1f680cdb5bae435 (diff)
downloadirmp-beda975f4477b6788b682aaf6695c8bbc2d33161.zip
version 1.9.3: added thomson protocol
git-svn-id: svn://mikrocontroller.net/irmp@71 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
Diffstat (limited to 'irsnd.h')
-rw-r--r--irsnd.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/irsnd.h b/irsnd.h
index a71b397..f8ece78 100644
--- a/irsnd.h
+++ b/irsnd.h
@@ -3,7 +3,7 @@
*
* Copyright (c) 2010-2011 Frank Meyer - frank(at)fli4l.de
*
- * $Id: irsnd.h,v 1.4 2011/04/11 12:54:25 fm Exp $
+ * $Id: irsnd.h,v 1.5 2011/05/20 09:31:25 fm Exp $
*
* ATMEGA88 @ 8 MHz
*
@@ -17,6 +17,11 @@
#ifndef _WC_IRSND_H_
#define _WC_IRSND_H_
+#define IRSND_NO_REPETITIONS 0 // no repetitions
+#define IRSND_MAX_REPETITIONS 14 // max # of repetitions
+#define IRSND_ENDLESS_REPETITION 15 // endless repetions
+#define IRSND_REPETITION_MASK 0x0F // lower nibble of flags
+
/**
* Initialize ISND encoder
* @details Configures ISDN output pin
@@ -39,6 +44,12 @@ extern uint8_t irsnd_is_busy (void);
extern uint8_t irsnd_send_data (IRMP_DATA *, uint8_t);
/**
+ * Stop sending IRMP data
+ * @details stops sending IRMP data
+ */
+extern void irsnd_stop (void);
+
+/**
* ISR routine
* @details ISR routine, called 10000 times per second
*/