[FL-1684] IRDA Add SIRC protocol (#693)
* IRDA HAL: Fill buffer refactoring * IRDA: Add SIRC protocol * IRDA: correct adr/cmd bit length * Disable Unit tests Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@ void* irda_decoder_rc5_alloc(void) {
|
||||
IrdaRc5Decoder* decoder = furi_alloc(sizeof(IrdaRc5Decoder));
|
||||
decoder->toggle = false;
|
||||
decoder->common_decoder = irda_common_decoder_alloc(&protocol_rc5);
|
||||
irda_common_decoder_set_context(decoder->common_decoder, decoder);
|
||||
decoder->common_decoder->context = decoder;
|
||||
return decoder;
|
||||
}
|
||||
|
||||
|
@@ -3,16 +3,16 @@
|
||||
|
||||
static const IrdaProtocolSpecification irda_rc5_protocol_specification = {
|
||||
.name = "RC5",
|
||||
.address_length = 2,
|
||||
.command_length = 2,
|
||||
.address_length = 5,
|
||||
.command_length = 6,
|
||||
.frequency = IRDA_RC5_CARRIER_FREQUENCY,
|
||||
.duty_cycle = IRDA_RC5_DUTY_CYCLE,
|
||||
};
|
||||
|
||||
static const IrdaProtocolSpecification irda_rc5x_protocol_specification = {
|
||||
.name = "RC5X",
|
||||
.address_length = 2,
|
||||
.command_length = 2,
|
||||
.address_length = 5,
|
||||
.command_length = 7,
|
||||
.frequency = IRDA_RC5_CARRIER_FREQUENCY,
|
||||
.duty_cycle = IRDA_RC5_DUTY_CYCLE,
|
||||
};
|
||||
|
Reference in New Issue
Block a user