MAX31850, DS18B20, DS2450, thermocouple

Committer:
fblanc
Date:
Mon Mar 09 11:55:54 2015 +0000
Revision:
0:5d39f2521173
MAX31850

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fblanc 0:5d39f2521173 1 #include <stdint.h>
fblanc 0:5d39f2521173 2
fblanc 0:5d39f2521173 3 uint16_t uint8_to_uint16(uint8_t lsb, uint8_t msb)
fblanc 0:5d39f2521173 4 {
fblanc 0:5d39f2521173 5 uint16_t data;
fblanc 0:5d39f2521173 6 uint8_t *ptr;
fblanc 0:5d39f2521173 7
fblanc 0:5d39f2521173 8 ptr=(uint8_t*)&data;
fblanc 0:5d39f2521173 9 *ptr=lsb;
fblanc 0:5d39f2521173 10 *++ptr=msb;
fblanc 0:5d39f2521173 11 return data;
fblanc 0:5d39f2521173 12 }