printer

Dependencies:   HCSR04 USBDevice mbed-src mbed mbed

Fork of Serial_HelloWorld_Mbed by mbed official

DS18B20.h

Committer:
redplam
Date:
2014-04-14
Revision:
1:a66cf68ec8ca

File content as of revision 1:a66cf68ec8ca:

#ifndef _DS18B20_
#define _DS18B20_

#include <stdint.h>
#include "mbed.h"

// Device Faimly ID and Setial number information
typedef union {
    uint8_t rom[8];
    struct {
        uint8_t    familyCode;
        uint8_t    serialNo[6];
        uint8_t    CRC;
    } BYTES;
} ROM_Code_t;

ROM_Code_t ReadROM() ;

// temperature is store as 7.4 fixed point format (assuming 12 bit conversion)
void displayTemperature(Serial& s) ;
void showTemperature(float *f);

#endif