Lines Matching full:handle

18 			sensing_sensor_handle_t *handle)  in sensing_open_sensor()  argument
22 if (sensor_info == NULL || handle == NULL) { in sensing_open_sensor()
28 ret = open_sensor(sensor, (struct sensing_connection **)handle); in sensing_open_sensor()
36 return sensing_register_callback(*handle, cb_list); in sensing_open_sensor()
41 sensing_sensor_handle_t *handle) in sensing_open_sensor_by_dt() argument
46 if (handle == NULL) { in sensing_open_sensor_by_dt()
56 ret = open_sensor(sensor, (struct sensing_connection **)handle); in sensing_open_sensor_by_dt()
61 return sensing_register_callback(*handle, cb_list); in sensing_open_sensor_by_dt()
65 int sensing_close_sensor(sensing_sensor_handle_t *handle) in sensing_close_sensor() argument
67 if (handle == NULL) { in sensing_close_sensor()
71 return close_sensor((struct sensing_connection **)handle); in sensing_close_sensor()
74 int sensing_set_config(sensing_sensor_handle_t handle, in sensing_set_config() argument
81 if (handle == NULL || configs == NULL) { in sensing_set_config()
94 ret |= set_interval(handle, cfg->interval); in sensing_set_config()
98 ret |= set_sensitivity(handle, cfg->data_field, cfg->sensitivity); in sensing_set_config()
114 int sensing_get_config(sensing_sensor_handle_t handle, in sensing_get_config() argument
121 if (handle == NULL || configs == NULL) { in sensing_get_config()
134 ret |= get_interval(handle, &cfg->interval); in sensing_get_config()
138 ret |= get_sensitivity(handle, cfg->data_field, &cfg->sensitivity); in sensing_get_config()
154 const struct sensing_sensor_info *sensing_get_sensor_info(sensing_sensor_handle_t handle) in sensing_get_sensor_info() argument
156 return get_sensor_info(handle); in sensing_get_sensor_info()