2021-03-31 17:52:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/view.h>
|
|
|
|
|
2021-09-28 00:05:40 +00:00
|
|
|
typedef enum {
|
|
|
|
SubghzTestPacketEventOnlyRx,
|
|
|
|
} SubghzTestPacketEvent;
|
|
|
|
|
2021-03-31 17:52:26 +00:00
|
|
|
typedef struct SubghzTestPacket SubghzTestPacket;
|
|
|
|
|
2021-09-28 00:05:40 +00:00
|
|
|
typedef void (*SubghzTestPacketCallback)(SubghzTestPacketEvent event, void* context);
|
|
|
|
|
|
|
|
void subghz_test_packet_set_callback(
|
|
|
|
SubghzTestPacket* subghz_test_packet,
|
|
|
|
SubghzTestPacketCallback callback,
|
|
|
|
void* context);
|
|
|
|
|
2021-03-31 17:52:26 +00:00
|
|
|
SubghzTestPacket* subghz_test_packet_alloc();
|
|
|
|
|
|
|
|
void subghz_test_packet_free(SubghzTestPacket* subghz_test_packet);
|
|
|
|
|
|
|
|
View* subghz_test_packet_get_view(SubghzTestPacket* subghz_test_packet);
|