mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 16:53:45 +00:00
38 lines
625 B
C
38 lines
625 B
C
|
/**
|
||
|
* @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
|
||
|
}
|
||
|
#endif
|