I've been trying to get my head around the TWI on the nRF51822 today, using the "twi_sensor_pca10028" example to begin with.
Firstly, I still don't quite understand how that works in non-blocking mode, so some explanation of that would be greatly appreciated. (Generally I find quite a lot of the example code to be unintuitive and difficult to follow, having some detailed functional description to go along with the example would be very helpful)
Having become frustrated at this example code I opted to check out the other example: "twi_master_using_app_twi_pca10028". In looking through this I realised the TWI is handled in a completely different manner. Why do two implementations of the same driver exist? Is there a benefit using one over the other?