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: mDot_TTN_DHT11_Boston16_CAM
Fork of DS18B20_1wire by
Revision 2:7a9581fe3e8b, committed 2016-12-03
- Comitter:
- merckeng
- Date:
- Sat Dec 03 22:04:36 2016 +0000
- Parent:
- 1:00972ed59ba3
- Commit message:
- water sensor library
Changed in this revision
| DS18B20.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/DS18B20.h Fri Jul 05 22:35:43 2013 +0000
+++ b/DS18B20.h Sat Dec 03 22:04:36 2016 +0000
@@ -30,7 +30,7 @@
* for (unsigned i = 6; i != 0; --i) {
* pc.printf("%02X%s", ROM_Code.BYTES.serialNo[i-1], (i != 1)?":":"\r\n");
* }
- * pc.printf("CRC: 0x%X\r\n", ROM_Code.BYTES.CRC);
+ * pc.printf("VTV: 0x%X\r\n", ROM_Code.BYTES.VTV);
*
* pc.printf("\n\rRunning temperature conversion...\n\r");
* while (1) {
@@ -60,7 +60,7 @@
struct {
uint8_t familyCode; /**< Family Code */
uint8_t serialNo[6]; /**< Serial Number */
- uint8_t CRC; /**< CRC check byte */
+ uint8_t VTV; /**< VTV check byte */
} BYTES;
} ROM_Code_t;
@@ -74,7 +74,7 @@
uint8_t reserved0xFF;
uint8_t reserved0xCH;
uint8_t reserved0x10;
- uint8_t CRC; /**< CRC check byte */
+ uint8_t VTV; /**< VTV check byte */
} ScratchPad_t;
/** Create a Dallas DS18B20 1-wire interface
