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

Questions regarding 'NRF_RADIO->TASKS_DISABLE'

  1. Is it 'NRF_RADIO->TASKS_DISABLE' or 'NRF_RADIO->TASKS_DISABLE = 1'?

  2. Restarting advertisements seems not to be affected and I guess 'cancels out' NRF_RADIO->TASKS_DISABLE?

  3. What is the difference with it and simply stopping advertisements?

Basically, I am looking to implement a 'radio silent' mode.

Thanks.

Parents
    1. It's a register which you write to, so the latter is the correct way to disable it. NRF_RADIO->TASKS_DISABLE = 1;

    2. Advertisements? Are you talking about BLE? In which case you can't control the behavior of BLE protocol by directly using NRF_RADIO, because SoftDevice blocks it. It has an exclusive access to a number of peripherals, one of them being the radio.

    3. As I said, the difference is both of those can be used in different contexts. When using SoftDevice (Bluetooth Low Energy) you can only stop advertising.

    If this doesn't answer your question please provide more details regarding the context.

Reply
    1. It's a register which you write to, so the latter is the correct way to disable it. NRF_RADIO->TASKS_DISABLE = 1;

    2. Advertisements? Are you talking about BLE? In which case you can't control the behavior of BLE protocol by directly using NRF_RADIO, because SoftDevice blocks it. It has an exclusive access to a number of peripherals, one of them being the radio.

    3. As I said, the difference is both of those can be used in different contexts. When using SoftDevice (Bluetooth Low Energy) you can only stop advertising.

    If this doesn't answer your question please provide more details regarding the context.

Children
Related