Identify the number of buffers and the size of each buffer that are required by the sensor
#include <sensor/external_sensor_api.h>
int get_buffer_requirements(void *handle, uint32_t *numBuffers, uint32_t *bufSize)
The details of buffer are required based on the current configuration and are also required to allocate buffers prior to streaming being started.
SENSOR_EOK when the function successfully completes; otherwise another sensor_error_t value that provides the reason that the call failed.