def METHOD_NAME(location, bit , type):
    value_t = get_pmc_register(location)
    if value_t.startswith("ERR") :
        return value_t
    if (type == 1):
        return float(value_t)/1000
    elif (type == 2):
        return float(value_t)/100
    elif (type == 3):
        psu_status = int(value_t,16)
        return (psu_status & (1<< bit)) >> bit
    elif (type == 4):
        return int(value_t,10)
    elif (type == 5):
        return float(value_t)/1000/1000
    else:
        return value_t;