Flipper Zero Firmware
Loading...
Searching...
No Matches
infrared_protocol_sirc_i.h
1#pragma once
2
3#include "../common/infrared_common_i.h"
4
5#define INFRARED_SIRC_CARRIER_FREQUENCY 40000
6#define INFRARED_SIRC_DUTY_CYCLE 0.33
7#define INFRARED_SIRC_PREAMBLE_MARK 2400
8#define INFRARED_SIRC_PREAMBLE_SPACE 600
9#define INFRARED_SIRC_BIT1_MARK 1200
10#define INFRARED_SIRC_BIT1_SPACE 600
11#define INFRARED_SIRC_BIT0_MARK 600
12#define INFRARED_SIRC_BIT0_SPACE 600
13#define INFRARED_SIRC_PREAMBLE_TOLERANCE 200 // us
14#define INFRARED_SIRC_BIT_TOLERANCE 120 // us
15#define INFRARED_SIRC_SILENCE 10000
16#define INFRARED_SIRC_MIN_SPLIT_TIME (INFRARED_SIRC_SILENCE - 1000)
17#define INFRARED_SIRC_REPEAT_PERIOD 45000
18#define INFRARED_SIRC_REPEAT_COUNT_MIN 3
19
20extern const InfraredCommonProtocolSpec infrared_protocol_sirc;
21
22bool infrared_decoder_sirc_interpret(InfraredCommonDecoder* decoder);
23InfraredStatus infrared_encoder_sirc_encode_repeat(
24 InfraredCommonEncoder* encoder,
25 uint32_t* duration,
26 bool* level);
Definition infrared_common_i.h:42
Definition infrared_common_i.h:55
Definition infrared_common_i.h:18