/* This API is the entry point. Call this API before using all other APIs. This API reads the chip-id of the sensor and sets the resolution.  */
uint16_t bma423_init(struct bma4_dev *dev)
/* This API is the entry point. Call this API before using all other APIs. This API reads the chip-id of the sensor and sets the resolution.  */
uint16_t bma423_init(struct bma4_dev *dev)
{
	uint16_t rslt;
	rslt = bma4_init(dev);
	if (rslt == BMA4_OK) {
		if (dev->chip_id == BMA423_CHIP_ID) {
			dev->resolution = 12;
			dev->feature_len = BMA423_FEATURE_SIZE;
			dev->variant = BMA42X_VARIANT;
		} else {
			rslt |= BMA4_E_INVALID_SENSOR;
		}
	}
	return rslt;
}