LoRa-BLE-Sensor
Loading...
Searching...
No Matches
sensor_names.h
Go to the documentation of this file.
1
12#ifndef SENSOR_NAMES_H
13#define SENSOR_NAMES_H
14
15#include "sensor_id.h"
16
24int get_sensor_voltage_name_from_index(char * voltage_name, enum sensor_voltage voltage);
25
32int get_sensor_voltage_index_from_name(char * voltage_name);
33
38int get_sensor_type_name_from_index(char * sensor_type_name, enum sensor_types sensor_type);
39
44int get_sensor_type_index_from_name(char * sensor_type_name);
45
46#endif
This is a library to keep track of sensor ids and sensor power ids. As well as the configuration for ...
sensor_types
Types of sensors that can be configured.
Definition sensor_id.h:29
sensor_voltage
Voltage levels for sensor power.
Definition sensor_id.h:54
int get_sensor_voltage_index_from_name(char *voltage_name)
Get the index for the selected sensor voltage.
Definition sensor_names.c:47
int get_sensor_type_name_from_index(char *sensor_type_name, enum sensor_types sensor_type)
Get the name for the selected sensor type.
Definition sensor_names.c:61
int get_sensor_type_index_from_name(char *sensor_type_name)
Get the index for the selected sensor type.
Definition sensor_names.c:73
int get_sensor_voltage_name_from_index(char *voltage_name, enum sensor_voltage voltage)
Get the name for the selected sensor voltage.
Definition sensor_names.c:35