EV_ICS-41350-FX Converting a PDM Signal to a PCM

I am currently using a raspberry pi to sample a EV_ICS-41350-FX microphone. I am able to generate a clock signal of 2MHz and I am able to sample the output signal at around 15kHz. I am wondering how to take this signal that I am sampling and convert it into a PCM single and Ultimately a .wav file.