DS1820-EM

Fork of DS1820 by HM Yoong

DS1Wire.h

Committer:
liviur2
Date:
2014-05-27
Revision:
2:8e118d297c83
Parent:
1:78f2fa466c55

File content as of revision 2:8e118d297c83:

#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