Home
last modified time | relevance | path

Searched refs:data_buf (Results 1 – 5 of 5) sorted by relevance

/components/drivers/sensor/v1/
A Dsensor.c163 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()
/components/drivers/sensor/v2/
A Dsensor.c158 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()
/components/drivers/include/drivers/
A Dsensor.h177 void *data_buf; /* The buf of the data received */ member
A Dsensor_v2.h323 rt_sensor_data_t data_buf; /* The buf of the data received */ member
/components/drivers/sdio/sdhci/include/
A Dsdhci.h319 void *data_buf; member

Completed in 23 milliseconds