We are trying to increase the frequency at which the BLE packets are being sent. We want to send one BLE packet that contains temperature and humidity settings every second.
In main.c, I can see PACKET_INTERVAL being defined as
#define PACKET_INTERVAL 4000000*0.01f
We are unable to understand the resolution of this value. What is the resolution of this value.
Also I looked at definition of this RF_getCurrentTime - but not sure how the value of current time is calculated (we have copied the code snippet below). Could you point to Register spec that explains this.
Please let us know how we could send one BLE packet every second with TIDA00374-Firmware.
nRtc = AONRTCCurrent64BitValueGet();
// Conservatively assume that we are just about to increment the RTC
nRtc += 0x100000000LL/32768;
// Scale with the 4 MHz that the RAT is running
nRtc *= 4000000;
// Add the RAT offset for RTC==0
nRtc += ((uint64_t)opRatSync.start.rat0)<<32;