mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-13 05:19:50 +04:00
Infrared: RCA protocol support (#2823)
* RCA protocol support * Add unit test Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "rc6/infrared_protocol_rc6.h"
|
||||
#include "sirc/infrared_protocol_sirc.h"
|
||||
#include "kaseikyo/infrared_protocol_kaseikyo.h"
|
||||
#include "rca/infrared_protocol_rca.h"
|
||||
|
||||
typedef struct {
|
||||
InfraredAlloc alloc;
|
||||
@@ -127,6 +128,20 @@ static const InfraredEncoderDecoder infrared_encoder_decoder[] = {
|
||||
.free = infrared_encoder_kaseikyo_free},
|
||||
.get_protocol_variant = infrared_protocol_kaseikyo_get_variant,
|
||||
},
|
||||
{
|
||||
.decoder =
|
||||
{.alloc = infrared_decoder_rca_alloc,
|
||||
.decode = infrared_decoder_rca_decode,
|
||||
.reset = infrared_decoder_rca_reset,
|
||||
.check_ready = infrared_decoder_rca_check_ready,
|
||||
.free = infrared_decoder_rca_free},
|
||||
.encoder =
|
||||
{.alloc = infrared_encoder_rca_alloc,
|
||||
.encode = infrared_encoder_rca_encode,
|
||||
.reset = infrared_encoder_rca_reset,
|
||||
.free = infrared_encoder_rca_free},
|
||||
.get_protocol_variant = infrared_protocol_rca_get_variant,
|
||||
},
|
||||
};
|
||||
|
||||
static int infrared_find_index_by_protocol(InfraredProtocol protocol);
|
||||
|
||||
Reference in New Issue
Block a user