Files
rtl_433/include/decoder.h
Christian W. Zuckschwerdt c1e02642fc Rename FSK_PULSE_PWM
2018-11-25 15:16:11 +01:00

33 lines
1.7 KiB
C

#ifndef INCLUDE_DECODER_H_
#define INCLUDE_DECODER_H_
#include <string.h>
#include "rtl_433_devices.h"
#include "bitbuffer.h"
#include "data.h"
#include "util.h"
/* Supported modulation types */
#define OOK_PULSE_MANCHESTER_ZEROBIT 3 // Manchester encoding. Hardcoded zerobit. Rising Edge = 0, Falling edge = 1
#define OOK_PULSE_PCM_RZ 4 // Pulse Code Modulation with Return-to-Zero encoding, Pulse = 0, No pulse = 1
#define OOK_PULSE_PPM_RAW 5 // Pulse Position Modulation. No startbit removal. Short gap = 0, Long = 1
#define OOK_PULSE_PWM_PRECISE 6 // Pulse Width Modulation with precise timing parameters
#define OOK_PULSE_PWM_RAW 7 // DEPRECATED; Pulse Width Modulation. Short pulses = 1, Long = 0
#define OOK_PULSE_PIWM_RAW 8 // Level shift for each bit. Short interval = 1, Long = 0
#define OOK_PULSE_PIWM_DC 11 // Level shift for each bit. Short interval = 1, Long = 0
#define OOK_PULSE_DMC 9 // Level shift within the clock cycle.
#define OOK_PULSE_PWM_OSV1 10 // Pulse Width Modulation. Oregon Scientific v1
#define FSK_DEMOD_MIN_VAL 16 // Dummy. FSK demodulation must start at this value
#define FSK_PULSE_PCM 16 // FSK, Pulse Code Modulation
#define FSK_PULSE_PWM 17 // FSK, Pulse Width Modulation. Short pulses = 1, Long = 0
#define FSK_PULSE_MANCHESTER_ZEROBIT 18 // FSK, Manchester encoding
extern int debug_output;
extern float sample_file_pos;
/** Pass the data structure to all output handlers. Frees data afterwards. */
void data_acquired_handler(data_t *data);
#endif /* INCLUDE_DECODER_H_ */