/* This API used to set the z repetition in the register 0x52 bit 0 to 7.  */
BMM050_RETURN_FUNCTION_TYPE bmm050_set_rep_Z(u8 v_rep_z_u8)
/* This API used to set the z repetition in the register 0x52 bit 0 to 7.  */
BMM050_RETURN_FUNCTION_TYPE bmm050_set_rep_Z(u8 v_rep_z_u8)
{
    BMM050_RETURN_FUNCTION_TYPE com_rslt = ERROR;
    u8 v_data_u8 = BMM050_INIT_VALUE;
    if (p_bmm050 == BMM050_NULL)
    {
        return  E_BMM050_NULL_PTR;
    }
    else
    {
        v_data_u8 = v_rep_z_u8;
        com_rslt = p_bmm050->BMM050_BUS_WRITE_FUNC(p_bmm050->dev_addr,
                   BMM050_REP_Z, &v_data_u8, BMM050_GEN_READ_WRITE_DATA_LENGTH);
    }
    return com_rslt;
}