bma456.c
/*!
 *	@brief This API update the length for read and write.
 */
@brief This API update the length for read and write.
@brief This API update the length for read and write .
static void update_len(uint8_t *len, uint8_t feature, uint8_t enable)
{
	uint8_t length = BMA456_FEATURE_SIZE;
	if ((feature == BMA456_ANY_MOTION) || (feature == BMA456_NO_MOTION)) {
		length = BMA456_ANYMOTION_EN_LEN;
		if (enable == BMA4_DISABLE) {
			length = length + 2;
		}
	}
	*len = length;
}
static void update_len ( uint8_t * len , uint8_t feature , uint8_t enable ) { uint8_t length = BMA456_FEATURE_SIZE ; if ( ( feature == BMA456_ANY_MOTION ) || ( feature == BMA456_NO_MOTION ) ) { length = BMA456_ANYMOTION_EN_LEN ; if ( enable == BMA4_DISABLE ) { length = length + 2 ; } } * len = length ; }
@brief This API update the length for read and write.
@brief This API update the length for read and write .
/* Change the feature length to 2 for reading and writing of 2 bytes for
		any/no-motion enable */ /* Read and write 4 byte to disable the any/no motion completely along with
		all axis */ /*Change the feature length to 4 for reading and writing
			of 4 bytes for any/no-motion enable */