mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-11 21:52:28 +00:00
acc39a4bc0
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
26 lines
550 B
C
26 lines
550 B
C
/**
|
|
* @file pulse_glue.h
|
|
*
|
|
* Simple tool to glue separated pulses to corret
|
|
*/
|
|
#pragma once
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct PulseGlue PulseGlue;
|
|
|
|
PulseGlue* pulse_glue_alloc(void);
|
|
void pulse_glue_free(PulseGlue* pulse_glue);
|
|
void pulse_glue_reset(PulseGlue* pulse_glue);
|
|
|
|
bool pulse_glue_push(PulseGlue* pulse_glue, bool polarity, uint32_t length);
|
|
void pulse_glue_pop(PulseGlue* pulse_glue, uint32_t* length, uint32_t* period);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|