2022-03-29 13:01:56 +00: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 13:37:10 +00:00
|
|
|
#endif
|