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

what is NRFX_SAADC_API_V2?

Hello,

I'm using nRF52833, s140, pca10100.

I looked at the code 'nrfx_saadc.c' to uninit SAADC.

The file contains two types of code, with or without the definition of NRFX_SAADC_API_V2, why is it classified like this?

BR,

lyrics

  • Hello,

    The file contains two types of code, with or without the definition of NRFX_SAADC_API_V2, why is it classified like this?

    There is a new alternate version of the nrfx SAADC driver available - the NRFX_SAADC_V2 driver.
    Its design and API is different, and therefore we have included checks to see which API is currently in use.
    The documentation for the V2 driver is unfortunately not available yet, but you can see it in the header file nrfx_saadc_v2 located at nRF5_SDK_17.0.2_d674dde\modules\nrfx\drivers\include in the nRF5 SDK.

    This headerfile contains all the documentation for the functions that will later be available on Infocenter.

    Best regards,
    Karl

Related