40 #include "dev/radio-sensor.h"
42 #include "lib/sensors.h"
76 float radio_sensor_value;
79 case RADIO_SENSOR_LAST_PACKET:
81 radio_sensor_value = DBM_VALUE(packetbuf_attr(PACKETBUF_ATTR_RSSI));
83 radio_sensor = (int32_t)(radio_sensor_value * 10);
85 case RADIO_SENSOR_LAST_VALUE:
88 radio_sensor = packetbuf_attr(PACKETBUF_ATTR_LINK_QUALITY);
96 configure(
int type,
int value)
125 SENSORS_SENSOR(radio_sensor, RADIO_SENSOR, value, configure, status);
Header file for the STM32Cube HAL APIs.
Header file for the Rime buffer (packetbuf) management
Header file for common sensor definitions.