Loading...
Searching...
No Matches
infrared_protocol_rca.h
1#pragma once
2
3#include "../infrared_i.h"
4
5/***************************************************************************************************
6* RCA protocol description
7* https://www.sbprojects.net/knowledge/ir/rca.php
8****************************************************************************************************
9* Preamble Preamble Pulse Distance/Width Pause Preamble Preamble
10* mark space Modulation up to period repeat repeat
11* mark space
12*
13* 4000 4000 24 bit ...8000 4000 4000
14* __________ _ _ _ _ _ _ _ _ _ _ _ _ _ ___________
15* ____ __________ _ _ _ __ __ __ _ _ __ __ _ _ ________________ ___________
16*
17***************************************************************************************************/
18
19void* infrared_decoder_rca_alloc(void);
20void infrared_decoder_rca_reset(void* decoder);
21void infrared_decoder_rca_free(void* decoder);
22InfraredMessage* infrared_decoder_rca_check_ready(void* decoder);
23InfraredMessage* infrared_decoder_rca_decode(void* decoder, bool level, uint32_t duration);
24
25void* infrared_encoder_rca_alloc(void);
26InfraredStatus infrared_encoder_rca_encode(void* encoder_ptr, uint32_t* duration, bool* level);
27void infrared_encoder_rca_reset(void* encoder_ptr, const InfraredMessage* message);
28void infrared_encoder_rca_free(void* encoder_ptr);
29
30const InfraredProtocolVariant* infrared_protocol_rca_get_variant(InfraredProtocol protocol);
Definition infrared.h:42
Definition infrared_i.h:19