/* This API sets/unsets the user provided interrupt to either interrupt pin1 or pin2 in the sensor.  */
uint16_t bma423_map_interrupt(uint8_t int_line, uint16_t int_map, uint8_t enable, struct bma4_dev *dev)
/* This API sets/unsets the user provided interrupt to either interrupt pin1 or pin2 in the sensor.  */
uint16_t bma423_map_interrupt(uint8_t int_line, uint16_t int_map, uint8_t enable, struct bma4_dev *dev)
{
	uint16_t rslt = BMA4_OK;
	if (dev != NULL) {
		if (dev->chip_id == BMA423_CHIP_ID) {
			if (int_line <= 1) {
				rslt = bma4_map_interrupt(int_line, int_map, enable, dev);
			} else {
				rslt = BMA4_E_INT_LINE_INVALID;
			}
		} else {
			rslt = BMA4_E_INVALID_SENSOR;
		}
	} else {
		rslt = BMA4_E_NULL_PTR;
	}
	return rslt;
}