Library to communicate with Maxim OneWire protocol devices Modified timings and IRQ overrides
Fork of Onewire by
Onewire.h
- Committer:
- simonbarker
- Date:
- 2013-06-23
- Revision:
- 0:d961f715d82b
- Child:
- 1:8e9464e05ddf
File content as of revision 0:d961f715d82b:
#ifndef Onewire_h
#define Onewire_h
#include "mbed.h"
class Onewire{
public:
Onewire(PinName oneBus);
void writeBit(int bit);
int readBit();
int init();
int readByte();
void writeByte(char data);
unsigned char CRC(unsigned char* addr, unsigned char len);
private:
DigitalInOut oneBus_;
};
#endif
