Hi,
Where can I get sample RSSI code of nrf51422? Thanks a lot in advance.
Hi,
Where can I get sample RSSI code of nrf51422? Thanks a lot in advance.
Hi Xinhua, I am terribly sorry for a late response.
If you use the Radio directly (without ANT) you can sample the signal strength by triggering a RSSISTART task and readout the RSSISAMPLE register.
If you use ANT you can
/* Enable RSSI level for received messages */ sd_ant_lib_config_set(ANT_LIB_CONFIG_MESG_OUT_INC_RSSI);
Then each time you receive a payload, byte 13 in event_message_buffer will contain the RSSI value, when reading out the event by: /* Fetch the event */ return_value = sd_ant_event_get(&ant_channel, &event, event_message_buffer);