sensor_devctl_info_u

Get sensor information.

Synopsis:

typedef union {
    struct {
        sensor_info_t info;
    } rx;
} sensor_devctl_info_u;

Data:

sensor_info_t
Sensor information.

Library:

None.

Description:

The union sensor__devctl__info__u is used with the DCMD_SENSOR_INFO device command to get the sensor information.

Example usage:
sensor_devctl_info_u sensorInfo;
result = devctl(fd, DCMD_SENSOR_INFO, &sensorInfo, sizeof(sensorInfo),
                NULL);
                
where:

sensorInfo.rx.info contains the sensor information returned by the system.

result is EOK for success (or see errno return code descriptions).

Last modified: 2013-12-21

comments powered by Disqus