rtl433  UNKNOWN
RTL-433 utility
radiohead_ask.c File Reference

Functions

static uint8_t symbol_6to4 (uint8_t symbol)
 
static int radiohead_ask_extract (r_device *decoder, bitbuffer_t *bitbuffer, uint8_t row, uint8_t *payload)
 
static int radiohead_ask_callback (r_device *decoder, bitbuffer_t *bitbuffer)
 
static int sensible_living_callback (r_device *decoder, bitbuffer_t *bitbuffer)
 

Variables

uint8_t rh_payload [RH_ASK_MAX_PAYLOAD_LEN] = {0}
 
int rh_data_payload [RH_ASK_MAX_MESSAGE_LEN]
 
static uint8_t symbols []
 
static char * radiohead_ask_output_fields []
 
static char * sensible_living_output_fields []
 
r_device radiohead_ask
 
r_device sensible_living
 

Function Documentation

◆ radiohead_ask_callback()

static int radiohead_ask_callback ( r_device decoder,
bitbuffer_t bitbuffer 
)
static

◆ radiohead_ask_extract()

static int radiohead_ask_extract ( r_device decoder,
bitbuffer_t bitbuffer,
uint8_t  row,
uint8_t payload 
)
static

◆ sensible_living_callback()

static int sensible_living_callback ( r_device decoder,
bitbuffer_t bitbuffer 
)
static

◆ symbol_6to4()

static uint8_t symbol_6to4 ( uint8_t  symbol)
static

References symbols.

Referenced by radiohead_ask_extract().

Variable Documentation

◆ radiohead_ask

r_device radiohead_ask
Initial value:
= {
.name = "Radiohead ASK",
.modulation = OOK_PULSE_PCM_RZ,
.short_width = 500,
.long_width = 500,
.reset_limit = 5*500,
.decode_fn = &radiohead_ask_callback,
}
static int radiohead_ask_callback(r_device *decoder, bitbuffer_t *bitbuffer)
Definition: radiohead_ask.c:122
Pulse Code Modulation with Return-to-Zero encoding, Pulse = 0, No pulse = 1.
Definition: r_device.h:11
static char * radiohead_ask_output_fields[]
Definition: radiohead_ask.c:194

◆ radiohead_ask_output_fields

char* radiohead_ask_output_fields[]
static
Initial value:
= {
"model",
"len",
"to",
"from",
"id",
"flags",
"payload",
"mic",
NULL
}

◆ rh_data_payload

int rh_data_payload[RH_ASK_MAX_MESSAGE_LEN]

Referenced by radiohead_ask_callback().

◆ rh_payload

uint8_t rh_payload[RH_ASK_MAX_PAYLOAD_LEN] = {0}

◆ sensible_living

r_device sensible_living
Initial value:
= {
.name = "Sensible Living Mini-Plant Moisture Sensor",
.modulation = OOK_PULSE_PCM_RZ,
.short_width = 1000,
.long_width = 1000,
.reset_limit = 5*1000,
.decode_fn = &sensible_living_callback,
}
Pulse Code Modulation with Return-to-Zero encoding, Pulse = 0, No pulse = 1.
Definition: r_device.h:11
static char * sensible_living_output_fields[]
Definition: radiohead_ask.c:206
static int sensible_living_callback(r_device *decoder, bitbuffer_t *bitbuffer)
Definition: radiohead_ask.c:158

◆ sensible_living_output_fields

char* sensible_living_output_fields[]
static
Initial value:
= {
"model",
"house_id",
"module_id",
"sensor_type",
"sensor_count",
"alarms",
"sensor_value",
"battery_voltage",
"battery_mV",
"mic",
NULL
}

◆ symbols

uint8_t symbols[]
static
Initial value:
= {
0x0d, 0x0e, 0x13, 0x15, 0x16, 0x19, 0x1a, 0x1c,
0x23, 0x25, 0x26, 0x29, 0x2a, 0x2c, 0x32, 0x34
}

Referenced by symbol_6to4().