Loading...
Searching...
No Matches
infrared_protocol_rca_i.h
1#pragma once
2
3#include "../common/infrared_common_i.h"
4
5#define INFRARED_RCA_PREAMBLE_MARK 4000
6#define INFRARED_RCA_PREAMBLE_SPACE 4000
7#define INFRARED_RCA_BIT1_MARK 500
8#define INFRARED_RCA_BIT1_SPACE 2000
9#define INFRARED_RCA_BIT0_MARK 500
10#define INFRARED_RCA_BIT0_SPACE 1000
11#define INFRARED_RCA_REPEAT_PERIOD 8000
12#define INFRARED_RCA_SILENCE INFRARED_RCA_REPEAT_PERIOD
13
14#define INFRARED_RCA_MIN_SPLIT_TIME INFRARED_RCA_REPEAT_PAUSE_MIN
15#define INFRARED_RCA_REPEAT_PAUSE_MIN 4000
16#define INFRARED_RCA_REPEAT_PAUSE_MAX 150000
17#define INFRARED_RCA_REPEAT_COUNT_MIN 1
18#define INFRARED_RCA_REPEAT_MARK INFRARED_RCA_PREAMBLE_MARK
19#define INFRARED_RCA_REPEAT_SPACE INFRARED_RCA_PREAMBLE_SPACE
20#define INFRARED_RCA_PREAMBLE_TOLERANCE 200 // us
21#define INFRARED_RCA_BIT_TOLERANCE 120 // us
22
23extern const InfraredCommonProtocolSpec infrared_protocol_rca;
24
25bool infrared_decoder_rca_interpret(InfraredCommonDecoder* decoder);
26InfraredStatus infrared_decoder_rca_decode_repeat(InfraredCommonDecoder* decoder);
27InfraredStatus infrared_encoder_rca_encode_repeat(
28 InfraredCommonEncoder* encoder,
29 uint32_t* duration,
30 bool* level);
Definition infrared_common_i.h:42
Definition infrared_common_i.h:55
Definition infrared_common_i.h:18