flipperzero-firmware/applications/irda/irda-app-transceiver.hpp
Albert Kharisov 9f6e14d005
[FL-1398] IRDA: Implement timings encoder, add RC-6 (#570)
* Add RC-6 protocol
* Implement timings Encoder
* Remove Unit-tests from build
2021-07-08 21:20:13 +03:00

22 lines
562 B
C++

#pragma once
#include <furi.h>
#include <irda.h>
class IrdaAppSignalTransceiver {
public:
IrdaAppSignalTransceiver(void);
~IrdaAppSignalTransceiver(void);
void capture_once_start(osMessageQueueId_t event_queue);
void capture_stop(void);
IrdaMessage* get_last_message(void);
void send_message(const IrdaMessage* message) const;
private:
bool capture_started;
osMessageQueueId_t event_queue;
static void irda_rx_callback(void* ctx, bool level, uint32_t duration);
IrdaDecoderHandler* decoder;
IrdaMessage message;
};