I am curious if the nRF52840 has the ability to assert a gpio when the BLE transmission is active?
You can also check out the ble_radio_notification.c in nRF5 SDK, and also here is the documentation for the usage:https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/radio_notif/radio_notif_peripheral_events.html