Symbols
loading...
Files
loading...

onewire sample sample

onewire sample is a sample project defining the following symbols:

Most used functions

Name
Location
Summary
Send reset pulse to the bus, and check if there are devices attached to the bus
Calculate Dallas CRC8 value of a given buffer
Create a new DS18B20 device based on the general 1-Wire device
Trigger temperature conversion of DS18B20
Set DS18B20's temperature conversion resolution
Get temperature from DS18B20
Create 1-Wire bus with RMT backend
Create an iterator to enumerate the 1-Wire devices on the bus
Get the next 1-Wire device from the iterator
Write a bit to 1-wire bus, this is a blocking function
Create a new singe device bus DS18B20 device based on a 1-Wire bus (not enumerated) this function assumes that the device is a DS18B20 device and there is only one device on the bus
Delete DS18B20 device
Free 1-Wire bus resources

Other commonly used symbols

Name
Location
Summary
1-Wire bus interface definition
Type of DS18B20 device handle
Type of 1-Wire device iterator handle
1-Wire device generic type
DS18B20 configuration
rmt tx channel handler
1-Wire bus RMT specific configuration
rmt rx channel handler
Device address (represented by its internal ROM ID)
used to encode reset pulse and bits
Type of the address for a 1-Wire compatible device
Structure of DS18B20's scratchpad
used to encode commands and data
Set the largest possible single receive size, which determins the size of the internal buffer that used to save the receiving RMT symbols
Write bytes to 1-wire bus
Read bytes from 1-wire bus
Write a bit to 1-wire bus, this is a blocking function
Read a bit from 1-wire bus
Send reset pulse to the bus, and check if there are devices attached to the bus
Free 1-Wire bus resources
GPIO number that used by the 1-Wire bus
12bit, needs ~750ms convert time
Which bus the 1-Wire device is attached to
buffer size in byte for single receive transaction
lsb of temperature
msb of temperature
resolution configuration register
crc value of scratchpad data
9bit, needs ~93.75ms convert time
10bit, needs ~187.5ms convert time
11bit, needs ~375ms convert time
th register or user byte 1
tl register or user byte 2

Dependencies

onewire sample depends on the following libraries: