Flipper Zero Firmware
Loading...
Searching...
No Matches
fsk_osc.h
1#pragma once
2#include <stdint.h>
3#include <stdbool.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9typedef struct FSKOsc FSKOsc;
10
20FSKOsc* fsk_osc_alloc(uint32_t freq_low, uint32_t freq_hi, uint32_t osc_phase_max);
21
27void fsk_osc_free(FSKOsc* osc);
28
34void fsk_osc_reset(FSKOsc* osc);
35
44bool fsk_osc_next(FSKOsc* osc, bool bit, uint32_t* period);
45
56bool fsk_osc_next_half(FSKOsc* osc, bool bit, bool* level, uint32_t* duration);
57
58#ifdef __cplusplus
59}
60#endif
Definition fsk_ocs.c:4