library for implementing ir transmission
Diff: XMIT_IR.h
- Revision:
- 7:01243fe65940
- Parent:
- 6:281167565d6d
diff -r 281167565d6d -r 01243fe65940 XMIT_IR.h --- a/XMIT_IR.h Sat Oct 06 17:36:37 2012 +0000 +++ b/XMIT_IR.h Sat Oct 06 17:45:20 2012 +0000 @@ -11,23 +11,19 @@ class IRTransmitter { public: - IRTransmitter(PinName TX, PinName PWM, PinName RX, int data_buff_len, void (*fptr_isr_rx)(void), void (*fptr_isr_tx)(void)); + IRTransmitter(PinName TX, PinName PWM, PinName RX, int data_buff_len, void (*fptr_isr_rx)(void)); ~IRTransmitter(); void MakePacket(char* data,int len); char ReadPacket(char* data, int len); - void isr_uartrx(void); void isr_rx(char data); - 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; - Mail<char,32> ir_txdata_mailbox; + Mail<char,64> ir_rxdata_mailbox; Serial* debug_port;