2022-03-29 16:01:56 +03:00
|
|
|
/**
|
|
|
|
* @file protocol_cyfral.h
|
|
|
|
*
|
|
|
|
* Cyfral pulse format decoder
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "../../pulse_protocols/pulse_protocol.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct ProtocolCyfral ProtocolCyfral;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Allocate decoder
|
|
|
|
* @return ProtocolCyfral*
|
|
|
|
*/
|
|
|
|
ProtocolCyfral* protocol_cyfral_alloc();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deallocate decoder
|
|
|
|
* @param cyfral
|
|
|
|
*/
|
|
|
|
void protocol_cyfral_free(ProtocolCyfral* cyfral);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get protocol interface
|
|
|
|
* @param cyfral
|
|
|
|
* @return PulseProtocol*
|
|
|
|
*/
|
|
|
|
PulseProtocol* protocol_cyfral_get_protocol(ProtocolCyfral* cyfral);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2022-05-06 16:37:10 +03:00
|
|
|
#endif
|