mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 23:10:22 +00:00
3164184bbc
* SubGhz: protocols library refactoring * SubGhz: new architecture and refactoring * SubGhz: simplify protocol structure, remove unused types * SubGhz: rename Subghz to SubGhz * SubGhz: add environment concept Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com> Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com>
23 lines
644 B
C
23 lines
644 B
C
#pragma once
|
|
|
|
#include "types.h"
|
|
#include "environment.h"
|
|
#include "protocols/base.h"
|
|
|
|
typedef struct SubGhzTransmitter SubGhzTransmitter;
|
|
|
|
struct SubGhzTransmitter {
|
|
const SubGhzProtocol* protocol;
|
|
SubGhzProtocolEncoderBase* protocol_instance;
|
|
};
|
|
|
|
SubGhzTransmitter*
|
|
subghz_transmitter_alloc_init(SubGhzEnvironment* environment, const char* protocol_name);
|
|
|
|
void subghz_transmitter_free(SubGhzTransmitter* instance);
|
|
|
|
bool subghz_transmitter_stop(SubGhzTransmitter* instance);
|
|
|
|
bool subghz_transmitter_deserialize(SubGhzTransmitter* instance, FlipperFormat* flipper_format);
|
|
|
|
LevelDuration subghz_transmitter_yield(void* context);
|