i2c working with old hk

Dependencies:   mbed-rtos mbed

Fork of BAE_vr2_1_1 by green rosh

Committer:
sakthipriya
Date:
Wed Dec 17 06:06:59 2014 +0000
Revision:
14:ef6be8ac6569
Parent:
13:1b37d98840d3
i2c working with old hk

Who changed what in which revision?

UserRevisionLine numberNew contents of line
greenroshks 0:8b0d43fe6c05 1 #include "mbed.h"
greenroshks 0:8b0d43fe6c05 2 #define tstart -40
greenroshks 0:8b0d43fe6c05 3 #define tstep 8
greenroshks 0:8b0d43fe6c05 4 #define vstart 3.3
greenroshks 0:8b0d43fe6c05 5 #define vstep 0.84667
greenroshks 0:8b0d43fe6c05 6 #define cstart 0.0691
greenroshks 0:8b0d43fe6c05 7 #define cstep 0.09133
greenroshks 0:8b0d43fe6c05 8 #define rsens 0.095
raizel_varun 6:e65b1ab79f36 9
sakthipriya 14:ef6be8ac6569 10
greenroshks 0:8b0d43fe6c05 11
greenroshks 0:8b0d43fe6c05 12
sakthipriya 14:ef6be8ac6569 13 struct SensorData {
sakthipriya 14:ef6be8ac6569 14 char Voltage[10];
sakthipriya 14:ef6be8ac6569 15 char Current[10];
sakthipriya 14:ef6be8ac6569 16 char Temperature[10];
sakthipriya 14:ef6be8ac6569 17 char faultpoll;
sakthipriya 14:ef6be8ac6569 18 char faultir;
sakthipriya 14:ef6be8ac6569 19 char power_mode;
sakthipriya 14:ef6be8ac6569 20 //float Battery[2];
sakthipriya 14:ef6be8ac6569 21 };
sakthipriya 14:ef6be8ac6569 22
sakthipriya 14:ef6be8ac6569 23
sakthipriya 14:ef6be8ac6569 24 typedef struct ShortBeacon {
sakthipriya 14:ef6be8ac6569 25 char Voltage[1];
greenroshks 13:1b37d98840d3 26 char AngularSpeed[2];
sakthipriya 14:ef6be8ac6569 27 char SubsystemStatus[1];
sakthipriya 14:ef6be8ac6569 28 char Temp[3];
sakthipriya 14:ef6be8ac6569 29 char ErrorFlag[1];
sakthipriya 14:ef6be8ac6569 30 }ShortBeacy;
sakthipriya 14:ef6be8ac6569 31
greenroshks 0:8b0d43fe6c05 32
greenroshks 0:8b0d43fe6c05 33 void FUNC_HK_MAIN();
greenroshks 0:8b0d43fe6c05 34
greenroshks 0:8b0d43fe6c05 35 int quantiz(float start,float step,float x);
sakthipriya 14:ef6be8ac6569 36