library for implementing ir transmission

Revision:
2:2eb0a3a29b5b
Parent:
1:ae1d2167a10c
Child:
3:823708586b3e
diff -r ae1d2167a10c -r 2eb0a3a29b5b XMIT_IR.h
--- a/XMIT_IR.h	Sat Oct 06 01:44:32 2012 +0000
+++ b/XMIT_IR.h	Sat Oct 06 02:45:52 2012 +0000
@@ -1,36 +1,39 @@
-#ifndef MBED_XMIT_IR_H
-#define MBED_XMIT_IR_H
-
-#include "mbed.h"
-#include "rtos.h"
-
-#define ASCII_ETX 0x03
-#define ASCII_STX 0x02
-
-class IRTransmitter
-{
-public:
-    IRTransmitter(PinName TX, PinName PWM, PinName RX, int data_buff_len, 	void 	(*fptr)(void));
-    ~IRTransmitter();
-    void MakePacket(char* data,int len);
-    char ReadPacket(char* data);
-    void isr_uartrx(void);
-
-public:
-    Mail<char,64> ir_data_mailbox;
-
-private:
-    Serial* ir_serial;
-    PwmOut* ir_pwm;
-    char*   data_buffer_out;
-    char*   data_buffer_in;
-
-
-
-};
-
-
-
-
-
+#ifndef MBED_XMIT_IR_H
+#define MBED_XMIT_IR_H
+
+#include "mbed.h"
+#include "rtos.h"
+
+#define ASCII_ETX 0x03
+#define ASCII_STX 0x02
+
+
+class IRTransmitter
+{
+public:
+    IRTransmitter(PinName TX, PinName PWM, PinName RX, int data_buff_len,     void     (*fptr)(void));
+    ~IRTransmitter();
+    void MakePacket(char* data,int len);
+    char ReadPacket(char* data);
+    void isr_uartrx(void);
+    void isr(char data);
+
+public:
+    Mail<char,64> ir_data_mailbox;
+
+private:
+    Serial* ir_serial;
+    PwmOut* ir_pwm;
+    char*   data_buffer_out;
+    char*   data_buffer_in;
+
+};
+
+
+
+
+
+
+
+
 #endif
\ No newline at end of file