sensor_handle_t

Updated: April 19, 2023

Pointer type representing a handle for an open instance of a sensor unit

Synopsis:

#include <sensor/sensor_api.h>
typedef void* sensor_handle_t;

Library:

libsensor

Description:

This pointer-based data type represents a handle that identifies an open instance of a logical sensor unit on a device. A handle to the sensor is created by calling sensor_open() and is released by calling sensor_close(). The handle, when available, is similar to a file descriptor used to access the sensor. Various Sensor library calls can use the handle to interact with the sensor.