Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Beaglebone Essentials
  • Table Of Contents Toc
Beaglebone Essentials

Beaglebone Essentials

By : Rodolfo Giometti
5 (2)
close
close
Beaglebone Essentials

Beaglebone Essentials

5 (2)
By: Rodolfo Giometti

Overview of this book

If you are a developer with some hardware or electrical engineering experience who wants to learn how to use embedded machine-learning capabilities and get access to a GNU/Linux device driver to collect data from a peripheral or to control a device, this is the book for you.
Table of Contents (13 chapters)
close
close
12
Index

The I2C bus in Linux


Each I2C device has a well-defined 7 bit address that the master must use in order to communicate with a device. This address is not assigned at runtime and, as for the USB devices, it's assigned by the board designer by setting chip's pins.

Tip

Typically, the chip manufacturer sets the most significant 3 or 4 bits, and the board designer can set the remaining bits in order to suit his/her needs.

Another thing to be outlined regarding the I2C bus is that for each message, the master must specify whether the message wants to read or write data from the slave. This special action is done by adding a final bit (the least significant bit) to the slave address, and the master uses 0 to write data and 1 to read data from the slave.

As for the USB bus, we still have two main actors: master and slave. So, in the kernel, we will find both the device driver types.

Regarding the I2C master device, there is nothing special to do here since the proper driver is already up and running...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Beaglebone Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon