/* SFH5712 ioctl control entry point. 
Support and FAQ: visit  */
static bool sfh5712_ioctl(sensor_t *sensor, sensor_command_t cmd, void *arg)
/* SFH5712 ioctl control entry point. 
Support and FAQ: visit  */
static bool sfh5712_ioctl(sensor_t *sensor, sensor_command_t cmd, void *arg)
{
	sensor_hal_t *const hal = sensor->hal;
	bool status = false;
	switch (cmd) {
	case SENSOR_SET_STATE:
		status = sfh5712_set_state(hal, *((sensor_state_t *)arg));
		break;
	default:
		sensor->err = SENSOR_ERR_UNSUPPORTED;
		break;
	}
	return status;
}