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