Get sensor information.
typedef union {
struct {
sensor_info_t info;
} rx;
} sensor_devctl_info_u;
BlackBerry 10.0.0
The union sensor__devctl__info__u is used with the DCMD_SENSOR_INFO device command to get the sensor information.
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).