Changing data with ANT EVENT_TX

Hi,

I am developing an ANT TX application using the nRF52832 and SoftDevice S332.
Things seems to be working well ... but I need one clarification
As per the ANT example, on every ANT EVENT_TX I call sd_ant_broadcast_message_tx(...) which transmits the data in the m_broadcast_data[] array.
However, I update the m_broadcast_data[] array on other system asynchronous events.
Suppose I am updating ...
m_broadcast_data[0] = 0
m_broadcast_data[1] = 1
m_broadcast_data[2] = 2
m_broadcast_data[3] = 3
and at this point an ant EVENT_TX interrupt is generated which broadcasts the data.

In this,
m_broadcast_data[3:0] has "new" data but
m_broadcast_data[7:4] has "old" data.
This transmission will cause errors on my receive side.

So ... question is:
Do I need to protect against this from happenning OR
is this somehow handled by SoftDevice?

thanks for your help

Parents Reply Children
No Data
Related