LPC 1768 equivalents

I am trying to write a program for interfacing SRAM with LPC1768 using an existing arduino code. However I'm unsure of using equivalents of arduino functions digitalwrite(), spi.transfer() and serial.begin(). Could anyone please let me know how can I write these in EmbeddedC since I am new to programming ARM. Thank you