LoRa-BLE-Sensor
|
This is a library for sensor names, converting between strings and enum values to make configurations human readable. More...
#include "sensor_id.h"
Go to the source code of this file.
Functions | |
int | get_sensor_voltage_name_from_index (char *voltage_name, enum sensor_voltage voltage) |
Get the name for the selected sensor voltage. | |
int | get_sensor_voltage_index_from_name (char *voltage_name) |
Get the index for the selected sensor voltage. | |
int | get_sensor_type_name_from_index (char *sensor_type_name, enum sensor_types sensor_type) |
Get the name for the selected sensor type. | |
int | get_sensor_type_index_from_name (char *sensor_type_name) |
Get the index for the selected sensor type. | |
This is a library for sensor names, converting between strings and enum values to make configurations human readable.
int get_sensor_voltage_index_from_name | ( | char * | voltage_name | ) |
Get the index for the selected sensor voltage.
voltage_name | char array for the name to be saved to |
int get_sensor_voltage_name_from_index | ( | char * | voltage_name, |
enum sensor_voltage | voltage | ||
) |
Get the name for the selected sensor voltage.
voltage_name | char array for the name to be saved to |
voltage | enum sensor_voltage setting selected |