2022-03-29 13:01:56 +00:00
|
|
|
/**
|
|
|
|
* @file protocol_metakom.h
|
|
|
|
*
|
|
|
|
* Metakom pulse format decoder
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "../../pulse_protocols/pulse_protocol.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct ProtocolMetakom ProtocolMetakom;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Allocate decoder
|
|
|
|
* @return ProtocolMetakom*
|
|
|
|
*/
|
|
|
|
ProtocolMetakom* protocol_metakom_alloc();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Free decoder
|
|
|
|
* @param metakom
|
|
|
|
*/
|
|
|
|
void protocol_metakom_free(ProtocolMetakom* metakom);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get protocol interface
|
|
|
|
* @param metakom
|
|
|
|
* @return PulseProtocol*
|
|
|
|
*/
|
|
|
|
PulseProtocol* protocol_metakom_get_protocol(ProtocolMetakom* metakom);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2022-05-06 13:37:10 +00:00
|
|
|
#endif
|