for checking i2c with integrated bae

Dependencies:   SDFileSystem mbed-rtos mbed

Committer:
viswa_chaitanya
Date:
Mon Sep 15 14:01:49 2014 +0000
Revision:
0:cb112a717428
cdms master(hk runs every 20s)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
viswa_chaitanya 0:cb112a717428 1 #include "mbed.h" //library //
viswa_chaitanya 0:cb112a717428 2 #define get_hk_data 1 //sample telecommands
viswa_chaitanya 0:cb112a717428 3 #define telecommand2 2
viswa_chaitanya 0:cb112a717428 4 #define telecommand3 3
viswa_chaitanya 0:cb112a717428 5 #define telecommand4 '4'
viswa_chaitanya 0:cb112a717428 6 #define telecommand5 '5'
viswa_chaitanya 0:cb112a717428 7 #define telecommand6 '6'
viswa_chaitanya 0:cb112a717428 8 #define telecommand7 '7'
viswa_chaitanya 0:cb112a717428 9 #define telecommand8 '8'
viswa_chaitanya 0:cb112a717428 10 #define telecommand9 '9'
viswa_chaitanya 0:cb112a717428 11 #define telecommand10 '10'
viswa_chaitanya 0:cb112a717428 12
viswa_chaitanya 0:cb112a717428 13 char receive_byte(); //funtion to receive float data
viswa_chaitanya 0:cb112a717428 14
viswa_chaitanya 0:cb112a717428 15
viswa_chaitanya 0:cb112a717428 16 struct SensorData //HK_data_structure
viswa_chaitanya 0:cb112a717428 17 {
viswa_chaitanya 0:cb112a717428 18 char voltage[10];
viswa_chaitanya 0:cb112a717428 19 char current[10];
viswa_chaitanya 0:cb112a717428 20 char temp[10];
viswa_chaitanya 0:cb112a717428 21 } ;
viswa_chaitanya 0:cb112a717428 22 void FUNC_I2C_MASTER_MAIN(int command, int slave_address, int iterations);