Loading...
Searching...
No Matches
infrared_protocol_nec.h
1#pragma once
2
3#include "../infrared_i.h"
4
5/***************************************************************************************************
6* NEC protocol description
7* https://radioparty.ru/manuals/encyclopedia/213-ircontrol?start=1
8****************************************************************************************************
9* Preamble Preamble Pulse Distance/Width Pause Preamble Preamble Stop
10* mark space Modulation up to period repeat repeat bit
11* mark space
12*
13* 9000 4500 32 bit + stop bit ...110000 9000 2250
14* __________ _ _ _ _ _ _ _ _ _ _ _ _ _ ___________ _
15* ____ __________ _ _ _ __ __ __ _ _ __ __ _ _ ________________ ____________ ___
16*
17***************************************************************************************************/
18
19void* infrared_decoder_nec_alloc(void);
20void infrared_decoder_nec_reset(void* decoder);
21void infrared_decoder_nec_free(void* decoder);
22InfraredMessage* infrared_decoder_nec_check_ready(void* decoder);
23InfraredMessage* infrared_decoder_nec_decode(void* decoder, bool level, uint32_t duration);
24
25void* infrared_encoder_nec_alloc(void);
26InfraredStatus infrared_encoder_nec_encode(void* encoder_ptr, uint32_t* duration, bool* level);
27void infrared_encoder_nec_reset(void* encoder_ptr, const InfraredMessage* message);
28void infrared_encoder_nec_free(void* encoder_ptr);
29
30const InfraredProtocolVariant* infrared_protocol_nec_get_variant(InfraredProtocol protocol);
Definition infrared.h:42
Definition infrared_i.h:19