mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 20:49:49 +04:00
Add support for Pioneer SR IR remotes (#3308)
* add support for Pioneer SR IR remotes * fix minor issues * fix repeat * Fix protocol enumeration order * Add unit tests for Pioneer IR protocol * Clean up raw test data * Add encoder/decoder tests, modify parser * Remove dead code * Use loops where appropriate Co-authored-by: Georgii Surkov <37121527+gsurkov@users.noreply.github.com> Co-authored-by: Georgii Surkov <georgii.surkov@outlook.com>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "sirc/infrared_protocol_sirc.h"
|
||||
#include "kaseikyo/infrared_protocol_kaseikyo.h"
|
||||
#include "rca/infrared_protocol_rca.h"
|
||||
#include "pioneer/infrared_protocol_pioneer.h"
|
||||
|
||||
typedef struct {
|
||||
InfraredAlloc alloc;
|
||||
@@ -114,6 +115,20 @@ static const InfraredEncoderDecoder infrared_encoder_decoder[] = {
|
||||
.free = infrared_encoder_sirc_free},
|
||||
.get_protocol_variant = infrared_protocol_sirc_get_variant,
|
||||
},
|
||||
{
|
||||
.decoder =
|
||||
{.alloc = infrared_decoder_pioneer_alloc,
|
||||
.decode = infrared_decoder_pioneer_decode,
|
||||
.reset = infrared_decoder_pioneer_reset,
|
||||
.check_ready = infrared_decoder_pioneer_check_ready,
|
||||
.free = infrared_decoder_pioneer_free},
|
||||
.encoder =
|
||||
{.alloc = infrared_encoder_pioneer_alloc,
|
||||
.encode = infrared_encoder_pioneer_encode,
|
||||
.reset = infrared_encoder_pioneer_reset,
|
||||
.free = infrared_encoder_pioneer_free},
|
||||
.get_protocol_variant = infrared_protocol_pioneer_get_variant,
|
||||
},
|
||||
{
|
||||
.decoder =
|
||||
{.alloc = infrared_decoder_kaseikyo_alloc,
|
||||
|
||||
Reference in New Issue
Block a user