protocol_cyfral.h 617 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * @file protocol_cyfral.h
  3. *
  4. * Cyfral pulse format decoder
  5. */
  6. #pragma once
  7. #include <stdint.h>
  8. #include "../../pulse_protocols/pulse_protocol.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. typedef struct ProtocolCyfral ProtocolCyfral;
  13. /**
  14. * Allocate decoder
  15. * @return ProtocolCyfral*
  16. */
  17. ProtocolCyfral* protocol_cyfral_alloc();
  18. /**
  19. * Deallocate decoder
  20. * @param cyfral
  21. */
  22. void protocol_cyfral_free(ProtocolCyfral* cyfral);
  23. /**
  24. * Get protocol interface
  25. * @param cyfral
  26. * @return PulseProtocol*
  27. */
  28. PulseProtocol* protocol_cyfral_get_protocol(ProtocolCyfral* cyfral);
  29. #ifdef __cplusplus
  30. }
  31. #endif