Loading...
Searching...
No Matches
pulse_glue.h
Go to the documentation of this file.
1
6#pragma once
7#include <stdint.h>
8#include <stdbool.h>
9#include <stdlib.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct PulseGlue PulseGlue;
16
17PulseGlue* pulse_glue_alloc(void);
18void pulse_glue_free(PulseGlue* pulse_glue);
19void pulse_glue_reset(PulseGlue* pulse_glue);
20
21bool pulse_glue_push(PulseGlue* pulse_glue, bool polarity, uint32_t length);
22void pulse_glue_pop(PulseGlue* pulse_glue, uint32_t* length, uint32_t* period);
23
24#ifdef __cplusplus
25}
26#endif
Definition pulse_glue.c:3