q. Can all PIC32 programmer pseudo operations be implemented as one firmware function?

There are five basic pseudo operations described in Microchip PIC32 programming documentation. But in fact they can all be implemented as one function PIC32 programmer firmware function. This due to the nature of the JTAG protocol.

See Programming guide on details.