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

Meaning of the built in functions

Hi, where can I get access to the definition and meaning and definition of the built in functions and headers of nrf51822? for instance what does this mean: uint8_t err_code = NRF_SUCCESS

  • @Ramin: Please give more information in your question. I don't know what you are asking about. The definition, and assignment of init value "uint8_t err_code = NRF_SUCCESS" is just to make sure err_code is created with value = 0 (NRF_SUCCESS) so that if it's not used then it will not cause any assertion.

  • Hi. You can search in our documentation page. This page can by found under "Documentation" on nordicsemi.com, or under "SDK and Documentation" on the top of the Devzone page.

    The error codes are for example described here.

    Depending on your IDE (Code/project editor), you can look up definitions directly. In Keil you can right click and choose "Go to definition", or press F12 while marking the variable or function you are interested in.

    As Hung mentioned, NRF_SUCCESS represents that an operation executed successfully. The err_code variable is used to store return codes from various functions in the SDK.

Related