ibutton read with modified ds18b20 libraries

Dependencies:   mbed

Due to the lack of programs for ibutton interfacing with mbed, i built this one (still needs a lot of development), it's in a very basic state, but i'm working on it...

Committer:
Renato
Date:
Fri Aug 23 08:36:59 2013 +0000
Revision:
0:4f399e4b64a9
Function to read ibutton serial & family

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Renato 0:4f399e4b64a9 1 #ifndef __DS_1_WIRE__
Renato 0:4f399e4b64a9 2 #define __DS_1_WIRE__
Renato 0:4f399e4b64a9 3 #include <stdint.h>
Renato 0:4f399e4b64a9 4 #include "mbed.h"
Renato 0:4f399e4b64a9 5
Renato 0:4f399e4b64a9 6 int Reset(DigitalInOut& pin);
Renato 0:4f399e4b64a9 7
Renato 0:4f399e4b64a9 8 void WriteBit(DigitalInOut& pin, uint32_t bit);
Renato 0:4f399e4b64a9 9 uint32_t ReadBit(DigitalInOut& pin);
Renato 0:4f399e4b64a9 10
Renato 0:4f399e4b64a9 11 void WriteByte(DigitalInOut& pin, uint32_t byte);
Renato 0:4f399e4b64a9 12 uint32_t ReadByte(DigitalInOut& pin);
Renato 0:4f399e4b64a9 13
Renato 0:4f399e4b64a9 14
Renato 0:4f399e4b64a9 15 #endif