rtl433  UNKNOWN
RTL-433 utility
r_device.h File Reference

Definition of r_device struct. More...

Go to the source code of this file.

Data Structures

struct  r_device
 Device protocol decoder struct. More...
 

Typedefs

typedef struct r_device r_device
 Device protocol decoder struct. More...
 

Enumerations

enum  modulation_types {
  OOK_PULSE_MANCHESTER_ZEROBIT = 3, OOK_PULSE_PCM_RZ = 4, OOK_PULSE_PPM = 5, OOK_PULSE_PWM = 6,
  OOK_PULSE_PIWM_RAW = 8, OOK_PULSE_PIWM_DC = 11, OOK_PULSE_DMC = 9, OOK_PULSE_PWM_OSV1 = 10,
  FSK_DEMOD_MIN_VAL = 16, FSK_PULSE_PCM = 16, FSK_PULSE_PWM = 17, FSK_PULSE_MANCHESTER_ZEROBIT = 18
}
 Supported modulation types. More...
 
enum  decode_return_codes {
  DECODE_FAIL_OTHER = 0, DECODE_ABORT_LENGTH = -1, DECODE_ABORT_EARLY = -2, DECODE_FAIL_MIC = -3,
  DECODE_FAIL_SANITY = -4
}
 Decoders should return n>0 for n packets successfully decoded, an ABORT code if the bitbuffer is no applicable, or a FAIL code if the message is malformed. More...
 

Detailed Description

Definition of r_device struct.

Typedef Documentation

◆ r_device

typedef struct r_device r_device

Device protocol decoder struct.

Enumeration Type Documentation

◆ decode_return_codes

Decoders should return n>0 for n packets successfully decoded, an ABORT code if the bitbuffer is no applicable, or a FAIL code if the message is malformed.

Enumerator
DECODE_FAIL_OTHER 

legacy, do not use

DECODE_ABORT_LENGTH 

Bitbuffer row count or row length is wrong for this sensor.

DECODE_ABORT_EARLY 
DECODE_FAIL_MIC 

Message Integrity Check failed: e.g.

checksum/CRC doesn't validate.

DECODE_FAIL_SANITY 

◆ modulation_types

Supported modulation types.

Enumerator
OOK_PULSE_MANCHESTER_ZEROBIT 

Manchester encoding. Hardcoded zerobit. Rising Edge = 0, Falling edge = 1.

OOK_PULSE_PCM_RZ 

Pulse Code Modulation with Return-to-Zero encoding, Pulse = 0, No pulse = 1.

OOK_PULSE_PPM 

Pulse Position Modulation. Short gap = 0, Long = 1.

OOK_PULSE_PWM 

Pulse Width Modulation with precise timing parameters.

OOK_PULSE_PIWM_RAW 

Level shift for each bit. Short interval = 1, Long = 0.

OOK_PULSE_PIWM_DC 

Level shift for each bit. Short interval = 1, Long = 0.

OOK_PULSE_DMC 

Level shift within the clock cycle.

OOK_PULSE_PWM_OSV1 

Pulse Width Modulation. Oregon Scientific v1.

FSK_DEMOD_MIN_VAL 

Dummy. FSK demodulation must start at this value.

FSK_PULSE_PCM 

FSK, Pulse Code Modulation.

FSK_PULSE_PWM 

FSK, Pulse Width Modulation. Short pulses = 1, Long = 0.

FSK_PULSE_MANCHESTER_ZEROBIT 

FSK, Manchester encoding.