Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating heating
Diff: 1-wire.h
- Revision:
- 0:b4b170ce93a4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/1-wire.h Thu Apr 25 14:44:25 2019 +0000 @@ -0,0 +1,16 @@ +#include <stdbool.h> + +#define ONE_WIRE_RESULT_OK 0 +#define ONE_WIRE_RESULT_NO_DEVICE_PRESENT 1 +#define ONE_WIRE_RESULT_NO_DEVICE_PARTICIPATING 2 +#define ONE_WIRE_RESULT_TIMED_OUT 3 +#define ONE_WIRE_RESULT_CRC_ERROR 4 + +extern bool OneWireTrace; + +extern int OneWireResult(void); +extern void OneWireInit(void); +extern bool OneWireBusy(void); +extern void OneWireExchange(int lenBytesToSend, int lenBytesToRecv, char *pBytesToSend, char *pBytesToRecv, int msToPullUp); +extern void OneWireSearch(char command, char* pDeviceRomList, bool* pAllDevicesFound); +extern int OneWireMain(void);