/* This API is used to get high bandwidth in the register 0x13 bit 7.  */
BMA2x2_RETURN_FUNCTION_TYPE bma2x2_get_high_bw(u8 *high_bw_u8)
/* This API is used to get high bandwidth in the register 0x13 bit 7.  */
BMA2x2_RETURN_FUNCTION_TYPE bma2x2_get_high_bw(u8 *high_bw_u8)
{
    BMA2x2_RETURN_FUNCTION_TYPE com_rslt = ERROR;
    u8 data_u8 = BMA2x2_INIT_VALUE;
    if (p_bma2x2 == BMA2x2_NULL)
    {
        return  E_BMA2x2_NULL_PTR;
    }
    else
    {
        com_rslt = p_bma2x2->BMA2x2_BUS_READ_FUNC
                   (p_bma2x2->dev_addr, BMA2x2_ENABLE_DATA_HIGH_BW_REG,
                    &data_u8, BMA2x2_GEN_READ_WRITE_LENGTH);
        *high_bw_u8 = BMA2x2_GET_BITSLICE
                      (data_u8, BMA2x2_ENABLE_DATA_HIGH_BW);
    }
    return com_rslt;
}