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
1-wire.h@0:b4b170ce93a4, 2019-04-25 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Apr 25 14:44:25 2019 +0000
- Revision:
- 0:b4b170ce93a4
Created
Who changed what in which revision?
User | Revision | Line number | New 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); |