Now I want to add apple media service, but the ram left for me is a bit small. My project is based on the nordic ancs example , and the ams and ancs is almost the same. So could I use the same tx_buffer for both ams and ancs at the same time?
Now I want to add apple media service, but the ram left for me is a bit small. My project is based on the nordic ancs example , and the ams and ancs is almost the same. So could I use the same tx_buffer for both ams and ancs at the same time?
Not sure what you mean when you say you want to use it at the same time for both service. You could most likely use the buffer for both ANCS and AMS, but you cannot place a write for AMS in the middle of a queued write for ANCS. So you need to be careful that you are able to handle both contexts in your application. You might want to considered using a larger chip with more space for code and ram?
I think the ancs & ams read or write is distinguished by their handle, so it can be mixed. Right?
For example, array[0] = ancs write, array[1] = ams write, then call tx_process, these two write will txed without problem since the ancs write handle and ams write handle is different.
I have not tested this. But I did take a look at the code yesterday, and I do agree this should work as the services are distinguished by their handle.
I have not tested this. But I did take a look at the code yesterday, and I do agree this should work as the services are distinguished by their handle.