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