/* Get the STATUS, STATUS2, FIFO_ENTRIES and FIFO_ENTRIES2 registers data  */
int32_t adxl372_get_status(adxl372_dev *dev, uint8_t *status1, uint8_t *status2, uint16_t *fifo_entries)
/* Get the STATUS, STATUS2, FIFO_ENTRIES and FIFO_ENTRIES2 registers data  */
int32_t adxl372_get_status(adxl372_dev *dev, uint8_t *status1, uint8_t *status2, uint16_t *fifo_entries)
{
	uint8_t buf[4];
	int32_t ret;
	ret = adxl372_spi_reg_read_multiple(dev,
					    ADXL372_STATUS_1,
					    buf, 4);
	*status1 = buf[0];
	*status2 = buf[1];
	*fifo_entries = ((buf[2] & 0x3) << 8) | buf[3];
	return ret;
}