I was googling for some MSP430 code examples (e.g. for SPI) for some time, unable to find anything. Do you happen to know, where to find some examples? They do have some on TI webpage, but very general, and not many of them.
MSP340 is a huge family with a few different non-code-compatible serial communication modules. You'll need to figure out which sub-family you're using and check the code examples page at TI for that device. The MSPWare package also has a lot of examples.
Beyond that it's usually a good bet to start with the evaluation module pages for the chip you're looking at and look for example code there.
There are tons of examples if you a search msp430 code examples spi I got tons of valid results like this one tutorial. Of course you have to tailor the pin settings to the parts you have but the ideas are the same.