Test DS18B20 sur D8

Dependencies:   mbed

Committer:
iut_cachan01
Date:
Mon Jun 21 09:55:09 2021 +0000
Revision:
1:7bf2fdef45c9
Parent:
0:03ec282c2908
Test DS18B20 sur D8

Who changed what in which revision?

UserRevisionLine numberNew contents of line
feabhas 0:03ec282c2908 1 #ifndef __DS_1_WIRE__
feabhas 0:03ec282c2908 2 #define __DS_1_WIRE__
feabhas 0:03ec282c2908 3 #include <stdint.h>
feabhas 0:03ec282c2908 4 #include "mbed.h"
feabhas 0:03ec282c2908 5
feabhas 0:03ec282c2908 6 int Reset(DigitalInOut& pin);
feabhas 0:03ec282c2908 7
feabhas 0:03ec282c2908 8 void WriteBit(DigitalInOut& pin, uint32_t bit);
feabhas 0:03ec282c2908 9 uint32_t ReadBit(DigitalInOut& pin);
feabhas 0:03ec282c2908 10
feabhas 0:03ec282c2908 11 void WriteByte(DigitalInOut& pin, uint32_t byte);
feabhas 0:03ec282c2908 12 uint32_t ReadByte(DigitalInOut& pin);
feabhas 0:03ec282c2908 13
feabhas 0:03ec282c2908 14
feabhas 0:03ec282c2908 15 #endif