mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-24 03:33:08 +00:00
38 lines
616 B
C
38 lines
616 B
C
|
/**
|
||
|
* @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
|
||
|
}
|
||
|
#endif
|