Searched refs:data_buf (Results 1 – 5 of 5) sorted by relevance
163 if (sensor->module != RT_NULL && sensor->info.fifo_max > 0 && sensor->data_buf == RT_NULL) in rt_sensor_open()166 sensor->data_buf = rt_malloc(sizeof(struct rt_sensor_data) * sensor->info.fifo_max); in rt_sensor_open()167 if (sensor->data_buf == RT_NULL) in rt_sensor_open()249 if (sensor->module != RT_NULL && sensor->info.fifo_max > 0 && sensor->data_buf != RT_NULL) in rt_sensor_close()260 if (sensor->module->sen[i]->data_buf != RT_NULL) in rt_sensor_close()262 rt_free(sensor->module->sen[i]->data_buf); in rt_sensor_close()263 sensor->module->sen[i]->data_buf = RT_NULL; in rt_sensor_close()309 rt_memcpy(buf, sensor->data_buf, len * sizeof(struct rt_sensor_data)); in rt_sensor_read()
158 if (sensor->module != RT_NULL && sensor->info.fifo_max > 0 && sensor->data_buf == RT_NULL) in _sensor_open()161 sensor->data_buf = rt_malloc(sizeof(struct rt_sensor_data) * sensor->info.fifo_max); in _sensor_open()162 if (sensor->data_buf == RT_NULL) in _sensor_open()252 if (sensor->module != RT_NULL && sensor->info.fifo_max > 0 && sensor->data_buf != RT_NULL) in _sensor_close()263 if (sensor->module->sen[i]->data_buf) in _sensor_close()265 rt_free(sensor->module->sen[i]->data_buf); in _sensor_close()266 sensor->module->sen[i]->data_buf = RT_NULL; in _sensor_close()312 rt_memcpy(buf, sensor->data_buf, len * sizeof(struct rt_sensor_data)); in _sensor_read()
177 void *data_buf; /* The buf of the data received */ member
323 rt_sensor_data_t data_buf; /* The buf of the data received */ member
319 void *data_buf; member
Completed in 23 milliseconds