Implement 1-wire functional library, for the use of the digital temperature sensor MAX31820.

Dependencies:   mbed

DS1Wire.h

Committer:
emarin
Date:
2014-08-18
Revision:
0:e546fd169f96

File content as of revision 0:e546fd169f96:

#ifndef __DS_1_WIRE__
#define __DS_1_WIRE__
#include <stdint.h>
#include "mbed.h"

int Reset(DigitalInOut& pin);

void WriteBit(DigitalInOut& pin, uint32_t bit);
uint32_t ReadBit(DigitalInOut& pin);

void WriteByte(DigitalInOut& pin, uint32_t byte);
uint32_t ReadByte(DigitalInOut& pin);


#endif