[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,9 +57,9 @@ IrdaStatus irda_decoder_rc6_decode_manchester(IrdaCommonDecoder* decoder) {
|
||||
uint16_t tolerance = decoder->protocol->timings.bit_tolerance;
|
||||
uint16_t timing = decoder->timings[0];
|
||||
|
||||
bool single_timing = MATCH_BIT_TIMING(timing, bit, tolerance);
|
||||
bool double_timing = MATCH_BIT_TIMING(timing, 2*bit, tolerance);
|
||||
bool triple_timing = MATCH_BIT_TIMING(timing, 3*bit, tolerance);
|
||||
bool single_timing = MATCH_TIMING(timing, bit, tolerance);
|
||||
bool double_timing = MATCH_TIMING(timing, 2*bit, tolerance);
|
||||
bool triple_timing = MATCH_TIMING(timing, 3*bit, tolerance);
|
||||
|
||||
if (decoder->databit_cnt == 4) {
|
||||
furi_assert(decoder->timings_cnt == 1);
|
||||
@@ -92,7 +92,7 @@ void* irda_decoder_rc6_alloc(void) {
|
||||
IrdaRc6Decoder* decoder = furi_alloc(sizeof(IrdaRc6Decoder));
|
||||
decoder->toggle = false;
|
||||
decoder->common_decoder = irda_common_decoder_alloc(&protocol_rc6);
|
||||
irda_common_decoder_set_context(decoder->common_decoder, decoder);
|
||||
decoder->common_decoder->context = decoder;
|
||||
return decoder;
|
||||
}
|
||||
|
||||
|
@@ -3,8 +3,8 @@
|
||||
|
||||
static const IrdaProtocolSpecification irda_rc6_protocol_specification = {
|
||||
.name = "RC6",
|
||||
.address_length = 2,
|
||||
.command_length = 2,
|
||||
.address_length = 8,
|
||||
.command_length = 8,
|
||||
.frequency = IRDA_RC6_CARRIER_FREQUENCY,
|
||||
.duty_cycle = IRDA_RC6_DUTY_CYCLE,
|
||||
};
|
||||
|
Reference in New Issue
Block a user