The libpruw1 library project provides a hardware driver for
- a one wire (W1) bus for AM335x micro processors,
- designed for Beaglebone hardware, providing
- configuration any GPIO as W1 bus (without additional hardware), for
- sending digital output and receiving digital input from the bus,
- logging the bus data line state for monitoring purposes,
- supporting parasite power mode.
The driver provides functions to
- scan the bus for all device IDs,
- send a single byte or a block of eight bytes to the bus,
- receive a single byte or a block of bytes from the bus,
- calculate the CRC checksum for a block of data, and
- compute the temperature in °C (centigrade) from Dallas sensors (types &h10, &h20, &h22, &h28, &h3B or &h42).
Find more information in the online documentation at
http://users.freebasic-portal.de/tjf/Pr ... /doc/html/
and find the source code at GitHub.com/DTJF/libpruw1 containing
- the library source (FB and PASM code)
- Example code (FB and C code)
- the documentation (in-source Doxygen code)