Thanks. But it is still not clear for me after reading this doc how xTicksToWait affects function’s behavior if buffer is NOT empty
It is only clearly said that “xStreamBufferReceive() will return immediately if xTicksToWait is zero”
If the buffer is not empty, the is no wait, you just get what is there. If the buffer is empty, it will wait for the first of trigger bytes or the time out to happen.