/* This function is used for the soft reset The soft reset register will be written with 0xB6 in the register 0x14.  */
BMA2x2_RETURN_FUNCTION_TYPE bma2x2_soft_rst(void)
/* This function is used for the soft reset The soft reset register will be written with 0xB6 in the register 0x14.  */
BMA2x2_RETURN_FUNCTION_TYPE bma2x2_soft_rst(void)
{
    BMA2x2_RETURN_FUNCTION_TYPE com_rslt = ERROR;
    u8 data_u8 = BMA2x2_ENABLE_SOFT_RESET_VALUE;
    if (p_bma2x2 == BMA2x2_NULL)
    {
        return E_BMA2x2_NULL_PTR;
    }
    else
    {
        com_rslt = bma2x2_write_reg(BMA2x2_RST_ADDR,
                                    &data_u8, BMA2x2_GEN_READ_WRITE_LENGTH);
    }
    return com_rslt;
}