/* This API reads the FIFO configuration from the sensor.  */
uint16_t bma4_get_fifo_config(uint8_t *fifo_config, struct bma4_dev *dev)
/* This API reads the FIFO configuration from the sensor.  */
uint16_t bma4_get_fifo_config(uint8_t *fifo_config, struct bma4_dev *dev)
{
    uint16_t rslt = 0;
    uint8_t data[2] = {0, 0};
    if (dev == NULL) {
        rslt |= BMA4_E_NULL_PTR;
    } else {
        rslt |= bma4_read_regs(BMA4_FIFO_CONFIG_0_ADDR, data, BMA4_FIFO_CONFIG_LENGTH, dev);
        if (rslt == BMA4_OK)
            *fifo_config = ((uint8_t)((data[0] & BMA4_FIFO_CONFIG_0_MASK) | (data[1])));
    }
    return rslt;
}