Loading...
Searching...
No Matches
infrared_protocol_kaseikyo_i.h
1#pragma once
2
3#include "../common/infrared_common_i.h"
4
5#define INFRARED_KASEIKYO_UNIT 432
6#define INFRARED_KASEIKYO_PREAMBLE_MARK (8 * INFRARED_KASEIKYO_UNIT)
7#define INFRARED_KASEIKYO_PREAMBLE_SPACE (4 * INFRARED_KASEIKYO_UNIT)
8#define INFRARED_KASEIKYO_BIT1_MARK INFRARED_KASEIKYO_UNIT
9#define INFRARED_KASEIKYO_BIT1_SPACE (3 * INFRARED_KASEIKYO_UNIT)
10#define INFRARED_KASEIKYO_BIT0_MARK INFRARED_KASEIKYO_UNIT
11#define INFRARED_KASEIKYO_BIT0_SPACE INFRARED_KASEIKYO_UNIT
12#define INFRARED_KASEIKYO_REPEAT_PERIOD 130000
13#define INFRARED_KASEIKYO_SILENCE INFRARED_KASEIKYO_REPEAT_PERIOD
14#define INFRARED_KASEIKYO_MIN_SPLIT_TIME INFRARED_KASEIKYO_REPEAT_PAUSE_MIN
15#define INFRARED_KASEIKYO_REPEAT_PAUSE_MIN 4000
16#define INFRARED_KASEIKYO_REPEAT_PAUSE_MAX 150000
17#define INFRARED_KASEIKYO_REPEAT_COUNT_MIN 1
18#define INFRARED_KASEIKYO_REPEAT_MARK INFRARED_KASEIKYO_PREAMBLE_MARK
19#define INFRARED_KASEIKYO_REPEAT_SPACE (INFRARED_KASEIKYO_REPEAT_PERIOD - 56000)
20#define INFRARED_KASEIKYO_PREAMBLE_TOLERANCE 200 // us
21#define INFRARED_KASEIKYO_BIT_TOLERANCE 120 // us
22
23extern const InfraredCommonProtocolSpec infrared_protocol_kaseikyo;
24
25bool infrared_decoder_kaseikyo_interpret(InfraredCommonDecoder* decoder);
26InfraredStatus infrared_decoder_kaseikyo_decode_repeat(InfraredCommonDecoder* decoder);
27InfraredStatus infrared_encoder_kaseikyo_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