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

What's the official way to implement a simple peripheral (SPI, I2C, etc) with NCS?

Hi there,

I'm struggling to find straight forward peripheral interface documentation for an NCS project.  I see there's something called nrfx (https://github.com/NordicSemiconductor/nrfx) and also Zephyr has peripheral APIs (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/peripherals/index.html).  Which is correct?  

For nrfx, I don't see any examples of usage of this.  For Zephyr APIs, how do I configure them?

Thanks

Parents
  • I'm still struggling with this.  I'm using the nRF52840dk and it seems to be "kind of" supported.  I find myself piecing together how to do this from forum posts and disparate documentation.  Honestly this is strange, why can't I just go to one set of documentation that describes the libraries needed and how to use them?  Why is so much of the NCS "documentation" actually just obfuscated examples that I need to reverse engineer?  I feel like I should just be able to #include a header file and do straight forward established I2C functions.

Reply
  • I'm still struggling with this.  I'm using the nRF52840dk and it seems to be "kind of" supported.  I find myself piecing together how to do this from forum posts and disparate documentation.  Honestly this is strange, why can't I just go to one set of documentation that describes the libraries needed and how to use them?  Why is so much of the NCS "documentation" actually just obfuscated examples that I need to reverse engineer?  I feel like I should just be able to #include a header file and do straight forward established I2C functions.

Children
Related