mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 19:23:09 +00:00
21 lines
555 B
C++
21 lines
555 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);
|
|
IrdaHandler* decoder;
|
|
IrdaMessage message;
|
|
};
|
|
|