/* This API update the length for read and write. 
Static Function Declarations */
static void update_len(uint8_t *len, uint8_t feature, uint8_t enable)
/* This API update the length for read and write. 
Static Function Declarations */
static void update_len(uint8_t *len, uint8_t feature, uint8_t enable)
{
	uint8_t length = BMA423_FEATURE_SIZE;
	if ((feature == BMA423_ANY_MOTION) || (feature == BMA423_NO_MOTION)) {
		length = BMA423_ANYMOTION_EN_LEN;
		if (enable == BMA4_DISABLE) {
			length = length + 2;
		}
	}
	*len = length;
}