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

Need Crypto CFB example code explanation

Hi Team,

Need explanation on some of the macros and section creations which are part of examples codes.

1. NRF_SECTION_DEF(test_case_data, test_case_t);   where " test_case_data" is initialized. In run-time we are directly getting the data from this structure.

    Eg: test_case_t * test_case = TEST_CASE_GET(j);

                  #define TEST_CASE_GET(i)    NRF_SECTION_ITEM_GET(test_case_data, test_case_t, (i)) \ 

                                           ((data_type*)NRF_SECTION_START_ADDR(section_name) + (i))

           Similar way we have found some of the macros in other examples as well. Only thing is how it is initialized.

2. NRF_SECTION_DEF(crypto_data, const nrf_crypto_backend_info_t);   // crypto_data

       nrf_crypto_backend_info_t const * p_backend = NRF_CRYPTO_BACKEND_SECTION_ITEM_GET(i);  

                    How this "p_backend " is initialized with predefined crypto data.

Regards,

Srinivas.V

Parents Reply Children
No Data
Related