library for implementing ir transmission
Diff: XMIT_IR.h
- Revision:
- 6:281167565d6d
- Parent:
- 5:ad52a062d494
- Child:
- 7:01243fe65940
diff -r ad52a062d494 -r 281167565d6d XMIT_IR.h --- a/XMIT_IR.h Sat Oct 06 14:40:38 2012 +0000 +++ b/XMIT_IR.h Sat Oct 06 17:36:37 2012 +0000 @@ -17,12 +17,13 @@ char ReadPacket(char* data, int len); void isr_uartrx(void); void isr_rx(char data); - void isr_tx(); + char isr_tx(void); void set_debug_port(Serial* port); private: char packet_is_valid(int data_len); void update_packet_buffer(char new_data, int data_len); + void mail_tx_packet(char data); public: Mail<char,32> ir_rxdata_mailbox;