This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI Library

Hello, I am looking for a SPI library which is simple enough to send and receive a byte from sensor. Something like this. for nRF51

spiwrite(ADDRESS, BYTEtoSEND);

val = spiread(ADDRESS);

is there anyone to help me. I am finding it so hard to use the example function. Thanks.

Parents
  • I am afraid that the SPI driver is not going to be as easy to use as the pseudocode in your question, but its not that hard to use. I recommend taking a look at the driver documentation on our Infocenter, found here. It contains a couple of code snippets showing how to use the driver.

    BTW: Which sensor are you trying to read from?

Reply
  • I am afraid that the SPI driver is not going to be as easy to use as the pseudocode in your question, but its not that hard to use. I recommend taking a look at the driver documentation on our Infocenter, found here. It contains a couple of code snippets showing how to use the driver.

    BTW: Which sensor are you trying to read from?

Children
No Data