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

how use nRF5 SDK14.2.0 SPI driver functions?

Hi DevZone,

I am working on a CAN Bus library for communication between nRF52840 Preview DK and MCP2515 chipset. I am trying to modify base on an Arduino MCP2515 CAN Bus library but find many difficulties as I am a very junior Nordic board developer.  

Can I ask some specific API functions provided by nRF5 SDK14.2.0 SPI driver?

1. How to read and write the registers such as SPDR, SPSR and how to access the bit such as SPIF.

2. How to set and reset the PIN: MOSI, MISO, SCK and CS?

Best regards

Ree

Related