def METHOD_NAME(symbol, event):
    DSCON_Value = symbol.getValue()
    if event["id"] == "DS_RTCC_ENABLE":
        bitPos = 12
        if event["value"] == False:
            DSCON_Value |= 1 << bitPos
        else:
            DSCON_Value &= ~(1 << bitPos)
    elif event["id"] == "DS_RTCC_WAKEUP_DISABLE":
        bitPos = 8
        if event["value"] == False:
            DSCON_Value |= 1 << bitPos
        else:
            DSCON_Value &= ~(1 << bitPos)
    elif event["id"] == "DS_EXTENDED_REG_ENABLE":
        bitPos = 13
        if event["value"] == True:
            DSCON_Value |= 1 << bitPos
        else:
            DSCON_Value &= ~(1 << bitPos)
    else:
        return
    symbol.setValue(DSCON_Value, 2)