What is the difference between the twi_sensor example and the twi_master_using_app_twi example? Where do I find any documentation that describes the available functions for each nrf_drv peripheral? Here is what I need to do:
I have 6 TWI slave devices on one TWI bus. I will need to send initialization data to setup these 6 devices before main loop begins.
In the main loop or in a scheduled app, I will need to periodically read from 4 of these TWI slave devices for:
- battery capacity & voltage
- temperature
- XYZ data from accelerometer
- Status of power switch via On/Off controller
To do this, which example would be best for this application? The twi_sensor is called each time through the main loop. The twi_master_using_app_twi example appears to setup a scheduled of TWI transactions that occur in a round-robin sort of way.