DS1820-EM
Fork of DS1820 by
DS1Wire.h@2:8e118d297c83, 2014-05-27 (annotated)
- Committer:
- liviur2
- Date:
- Tue May 27 17:03:27 2014 +0000
- Revision:
- 2:8e118d297c83
- Parent:
- 1:78f2fa466c55
small changes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
liviur2 | 1:78f2fa466c55 | 1 | #ifndef __DS_1_WIRE__ |
liviur2 | 1:78f2fa466c55 | 2 | #define __DS_1_WIRE__ |
liviur2 | 1:78f2fa466c55 | 3 | #include <stdint.h> |
liviur2 | 1:78f2fa466c55 | 4 | #include "mbed.h" |
liviur2 | 1:78f2fa466c55 | 5 | |
liviur2 | 1:78f2fa466c55 | 6 | int Reset(DigitalInOut& pin); |
liviur2 | 1:78f2fa466c55 | 7 | |
liviur2 | 1:78f2fa466c55 | 8 | void WriteBit(DigitalInOut& pin, uint32_t bit); |
liviur2 | 1:78f2fa466c55 | 9 | uint32_t ReadBit(DigitalInOut& pin); |
liviur2 | 1:78f2fa466c55 | 10 | |
liviur2 | 1:78f2fa466c55 | 11 | void WriteByte(DigitalInOut& pin, uint32_t byte); |
liviur2 | 1:78f2fa466c55 | 12 | uint32_t ReadByte(DigitalInOut& pin); |
liviur2 | 1:78f2fa466c55 | 13 | |
liviur2 | 1:78f2fa466c55 | 14 | |
liviur2 | 1:78f2fa466c55 | 15 | #endif |