This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf_drv_twi dynamically adjust receiving length

Hi,

I am porting a NCI (Nfc Controller Interface) driver to the nRF52. One of the things I am struggling with is that, when reading from the device, the amount of data to be read is part of the first 3 bytes. Is it possible to set up a transfer of 250 bytes and the, after reading the first 3 bytes, downsizing to the right amount of bytes (which is part of these first 3 bytes) without interrupting the transfer?

Thanks and regards, Josef

Related