2021-03-31 20:52:26 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/view.h>
|
|
|
|
|
2021-09-28 03:05:40 +03:00
|
|
|
typedef enum {
|
|
|
|
SubghzTestPacketEventOnlyRx,
|
|
|
|
} SubghzTestPacketEvent;
|
|
|
|
|
2021-03-31 20:52:26 +03:00
|
|
|
typedef struct SubghzTestPacket SubghzTestPacket;
|
|
|
|
|
2021-09-28 03:05:40 +03: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 20:52:26 +03: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);
|