Getting The MCU RSSI In Firmware
When testing the Bluetooth range on a device using the nRF53 SoC it’s useful to know what the RSSI is from the perspective of the SoC.
The hci_pwr_ctrl
example in the nrfconnect/sdk-zephyr
repo contains example code that reads back the RSSI. See https://github.com/nrfconnect/sdk-zephyr/blob/b9253f60e83c046fa432d49b157e1536af1f1ab2/samples/bluetooth/hci_pwr_ctrl/src/main.c for the core parts of this.