Andrew Boyson / 1-wire

Dependents:   oldheating heating

Committer:
andrewboyson
Date:
Thu Apr 25 14:44:25 2019 +0000
Revision:
0:b4b170ce93a4
Created

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 0:b4b170ce93a4 1 #include <stdbool.h>
andrewboyson 0:b4b170ce93a4 2
andrewboyson 0:b4b170ce93a4 3 #define ONE_WIRE_RESULT_OK 0
andrewboyson 0:b4b170ce93a4 4 #define ONE_WIRE_RESULT_NO_DEVICE_PRESENT 1
andrewboyson 0:b4b170ce93a4 5 #define ONE_WIRE_RESULT_NO_DEVICE_PARTICIPATING 2
andrewboyson 0:b4b170ce93a4 6 #define ONE_WIRE_RESULT_TIMED_OUT 3
andrewboyson 0:b4b170ce93a4 7 #define ONE_WIRE_RESULT_CRC_ERROR 4
andrewboyson 0:b4b170ce93a4 8
andrewboyson 0:b4b170ce93a4 9 extern bool OneWireTrace;
andrewboyson 0:b4b170ce93a4 10
andrewboyson 0:b4b170ce93a4 11 extern int OneWireResult(void);
andrewboyson 0:b4b170ce93a4 12 extern void OneWireInit(void);
andrewboyson 0:b4b170ce93a4 13 extern bool OneWireBusy(void);
andrewboyson 0:b4b170ce93a4 14 extern void OneWireExchange(int lenBytesToSend, int lenBytesToRecv, char *pBytesToSend, char *pBytesToRecv, int msToPullUp);
andrewboyson 0:b4b170ce93a4 15 extern void OneWireSearch(char command, char* pDeviceRomList, bool* pAllDevicesFound);
andrewboyson 0:b4b170ce93a4 16 extern int OneWireMain(void);