ocssw
V2022
|
#include <sensorInfo.h>
#include <stddef.h>
#include <strings.h>
#include <stdlib.h>
#include <genutils.h>
Go to the source code of this file.
Functions | |
const char * | sensorId2SensorName (int sensorId) |
const char * | sensorId2InstrumentName (int sensorId) |
const char * | sensorId2PlatformName (int sensorId) |
const char * | sensorId2SensorDir (int sensorId) |
const char * | subsensorId2SubsensorDir (int subsensorId) |
int | sensorName2SensorId (const char *name) |
int | instrumentPlatform2SensorId (const char *instrument, const char *platform) |
int | sensorId2SubsensorId (int sensorId) |
const char * | instrumentPlatform2SensorName (const char *instrument, const char *platform) |
Function Documentation
◆ instrumentPlatform2SensorId()
lookup the sensorID for a given instrument and platform
- Parameters
-
instrument instrument to use for sensorID look up platform platform to use for sensorID lookup
- Returns
- the matching sensorID, or -1 if not found
Definition at line 302 of file sensorInfo.c.
◆ instrumentPlatform2SensorName()
fine the sensor name given the instrument and platform
- Parameters
-
instrument name of instrument platform name of platform
- Returns
- sensor name
Definition at line 357 of file sensorInfo.c.
◆ sensorId2InstrumentName()
const char* sensorId2InstrumentName | ( | int | sensorId | ) |
Get the name of the instrument for this sensorId.
- Parameters
-
sensorId sensor identifier to look up.
- Returns
- name of the instrument or NULL if not found.
Definition at line 212 of file sensorInfo.c.
◆ sensorId2PlatformName()
const char* sensorId2PlatformName | ( | int | sensorId | ) |
Get the name of the platform for this sensorId.
- Parameters
-
sensorId sensor identifier to look up.
- Returns
- name of the platform or NULL if not found.
Definition at line 226 of file sensorInfo.c.
◆ sensorId2SensorDir()
const char* sensorId2SensorDir | ( | int | sensorId | ) |
Get the name of the sensor directory for this sensorId.
- Parameters
-
sensorId sensor identifier to look up.
- Returns
- sensor directory or NULL if not found.
Definition at line 240 of file sensorInfo.c.
◆ sensorId2SensorName()
const char* sensorId2SensorName | ( | int | sensorId | ) |
Get the name of the sensor for this sensorId.
- Parameters
-
sensorId sensor identifier to look up.
- Returns
- name of sensor or NULL if not found.
Definition at line 198 of file sensorInfo.c.
◆ sensorId2SubsensorId()
int sensorId2SubsensorId | ( | int | sensorId | ) |
return the subsensorId for the given sensorId
- Parameters
-
sensorId sensorId to lookup
- Returns
- the subsensorId, or -1 if not found
Definition at line 322 of file sensorInfo.c.
◆ sensorName2SensorId()
int sensorName2SensorId | ( | const char * | name | ) |
lookup the ID for a sensor name
- Parameters
-
sensorName name of the sensor to lookup
- Returns
- sensor ID for the given sensor, -1 if not found.
Definition at line 268 of file sensorInfo.c.
◆ subsensorId2SubsensorDir()
const char* subsensorId2SubsensorDir | ( | int | subsensorId | ) |
Get the name of the subsensor directory for this subsensorId.
- Parameters
-
subsensorId subsensor identifier to look up.
- Returns
- subsensor directory or NULL if not found.
Definition at line 254 of file sensorInfo.c.