Sorry, there is no specific code in the LPC18xx PDL. However, a SPI driver example is there as a starting point.