/* This API reads the Feature and Hardware interrupt status from the sensor.  */
uint16_t bma4_read_int_status(uint16_t *int_status, struct bma4_dev *dev)
/* This API reads the Feature and Hardware interrupt status from the sensor.  */
uint16_t bma4_read_int_status(uint16_t *int_status, struct bma4_dev *dev)
{
    uint16_t rslt = 0;
    uint8_t data[2] = {0};
    if (dev == NULL) {
        rslt |= BMA4_E_NULL_PTR;
    } else {
        rslt |= bma4_read_regs(BMA4_INT_STAT_0_ADDR, data, 2, dev);
        if (rslt == BMA4_OK) {
            *int_status = data[0];
            *((uint8_t *)int_status + 1) = data[1];
        }
    }
    return rslt;
}