DS1820-EM

Fork of DS1820 by HM Yoong

DS1820G.h

Committer:
liviur2
Date:
2014-05-27
Revision:
2:8e118d297c83
Parent:
1:78f2fa466c55

File content as of revision 2:8e118d297c83:

/**
 * DS1820-generic class
 *
 * Copyright (C) 2012
 * http://bulkideas.org
 */

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

#ifndef _DS1820G_H_
#define _DS1820G_H_

class DS1820G
{
    /**
     */

public:
    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();
    
    

private:


};

#endif