Knud Dalgaard / 310-TMC3-TestHW

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pt100.h Source File

pt100.h

00001 #include "mbed.h"
00002 
00003 
00004 
00005 //---------------------------------------
00006 // Definitions
00007 //---------------------------------------
00008 #define PT100_I2C_ADD   ( I2C_BASE_ADDRESS + (0 << 1) )    // I2C_BASE_ADDRESS is defined in MCP23017
00009 
00010 
00011 //---------------------------------------
00012 // Enums
00013 //---------------------------------------
00014 
00015 // Global commands 0 - 20 are defined in interpret.h
00016 // Commands 21 - 127 are HW-unit commands
00017 typedef enum
00018 {
00019     PT100_COM_SET = 21,     // 21: set state
00020     PT100_COM_GET,          // 22: get state
00021     //----------------
00022     CNT_ePT100_command
00023 }ePT100_command;
00024 
00025 
00026 
00027 //---------------------------------------
00028 // Structures
00029 //---------------------------------------
00030 
00031 
00032 
00033 //---------------------------------------
00034 // Global Variables
00035 //---------------------------------------
00036 
00037 
00038 
00039 //---------------------------------------
00040 // Global Functions
00041 //---------------------------------------
00042 void PT100_init( void );
00043 void PT100_deviceID_process( void );