Loading...
Searching...
No Matches
infrared_protocol_rc5_i.h
1#pragma once
2
3#include "../common/infrared_common_i.h"
4
5#define INFRARED_RC5_CARRIER_FREQUENCY 36000
6#define INFRARED_RC5_DUTY_CYCLE 0.33
7
8#define INFRARED_RC5_PREAMBLE_MARK 0
9#define INFRARED_RC5_PREAMBLE_SPACE 0
10#define INFRARED_RC5_BIT 888 // half of time-quant for 1 bit
11#define INFRARED_RC5_PREAMBLE_TOLERANCE 200 // us
12#define INFRARED_RC5_BIT_TOLERANCE 120 // us
13/* protocol allows 2700 silence, but it is hard to send 1 message without repeat */
14#define INFRARED_RC5_SILENCE (2700 * 10)
15#define INFRARED_RC5_MIN_SPLIT_TIME 2700
16#define INFRARED_RC5_REPEAT_COUNT_MIN 1
17
18extern const InfraredCommonProtocolSpec infrared_protocol_rc5;
19
20bool infrared_decoder_rc5_interpret(InfraredCommonDecoder* decoder);
Definition infrared_common_i.h:42
Definition infrared_common_i.h:18