SingingCat 0
application
onewire.h
1#ifndef ONEWIRE_H
2#define ONEWIRE_H 1
3typedef struct onewire_hwdef {
4 int pin;
5 int offset;
6} _hwdef;
7
8// query a onewire device for its value
9int query_onewire(struct onewire_hwdef *hw, byte *error);
10int onewire_doWriteRead(const uint8_t *writeData, uint8_t *readData, uint16_t nWriteBits, uint16_t nReadBits);
11int onewire_run(byte idx, byte *error);
12int onewire_init(byte idx);
13int onewire_reading_size(byte idx);
14int onewire_status();
15#endif