In this section, we will examine our example Android app that interfaces with the FRAM using I2C on BBB. The purpose of this application is to demonstrate how to use PacktHAL to perform FRAM reads and writes from within an actual app. PacktHAL provides a set of interfacing functions that you will use to work with the FRAM from within your Android apps. These functions allow you to retrieve blocks of data from the FRAM and write new data to be stored on the FRAM. The low-level details of the hardware interfacing are implemented in PacktHAL, so you can quickly and easily get your apps interacting with the FRAM breakout board.
Before digging through the FRAM app's code, you must install the code to your development system and install the app to your Android system. The source code for the app as well as the precompiled .apk
package, are located in the chapter4.tgz
file, which is available for download from the Packt website. Follow the same process to download...