mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-17 02:13:19 +03:00
c583cce5bd
* Remove excess headers * Add ButtonPanel * Add Popup * Move FileReader to standalone object * Universal remote (part 1) * Universal remote (part 2) * Global rename tranciever/file_parser * Compile assets * syntax fix * English: rename tranceiver to transceiver. Co-authored-by: あく <alleteam@gmail.com>
21 lines
529 B
C++
21 lines
529 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:
|
|
osMessageQueueId_t event_queue;
|
|
static void irda_rx_callback(void* ctx, bool level, uint32_t duration);
|
|
IrdaHandler* decoder;
|
|
IrdaMessage message;
|
|
};
|
|
|