If I have corretly understood your requirement then you want to program the PSoC1 device from another host controller and you want to implement the programming protocol inside that host device. If this is what you are referring to then we already have an app note explaining this procedure i.e. AN44168: Host Sourced Serial Programming and can be downloaded from the following location: http://www.cypress.com/?rID=2906. It provides an example project as well.
If my understanding is wrong then please explain once again what your requirements are.
Thanks for your answer, that's exactly what I was looking for
Yet another question : I cannot find the AN2026a and AN2026b application notes on Cypress web site. The link seems broken
Thanks for your help