summaryrefslogtreecommitdiff
path: root/irsnd.h
diff options
context:
space:
mode:
authorukw2010-03-24 11:56:05 +0000
committerukw2010-03-24 11:56:05 +0000
commit4225a882583e3f3f35b5a9ee652d204338059b61 (patch)
tree155a5f81e97196df202a451d527344a8ee8e78c1 /irsnd.h
downloadirmp-4225a882583e3f3f35b5a9ee652d204338059b61.zip
1st checkin, version 1.0
git-svn-id: svn://mikrocontroller.net/irmp@1 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
Diffstat (limited to 'irsnd.h')
-rw-r--r--irsnd.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/irsnd.h b/irsnd.h
new file mode 100644
index 0000000..d25f3f3
--- /dev/null
+++ b/irsnd.h
@@ -0,0 +1,45 @@
+/*---------------------------------------------------------------------------------------------------------------------------------------------------
+ * irsnd.h
+ *
+ * Copyright (c) 2010 Frank Meyer - frank(at)fli4l.de
+ *
+ * ATMEGA88 @ 8 MHz
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *---------------------------------------------------------------------------------------------------------------------------------------------------
+ */
+
+#ifndef _WC_IRSND_H_
+#define _WC_IRSND_H_
+
+/**
+ * Initialize ISND encoder
+ * @details Configures ISDN output pin
+ */
+extern void irsnd_init (void);
+
+/**
+ * Check if sender is busy
+ * @details checks if sender is busy
+ * @return TRUE: sender is busy, FALSE: sender is not busy
+ */
+extern uint8_t irsnd_is_busy (void);
+
+/**
+ * Send IRMP data
+ * @details sends IRMP data
+ * @param pointer to IRMP data structure
+ * @return TRUE: successful, FALSE: failed
+ */
+extern uint8_t irsnd_send_data (IRMP_DATA *);
+
+/**
+ * ISR routine
+ * @details ISR routine, called 10000 times per second
+ */
+extern uint8_t irsnd_ISR (void);
+
+#endif /* _WC_IRSND_H_ */