Chaitanya Viswa
/
_i2c_master
kjkjkjkjk
Fork of i2c_master by
master.h@2:c1387cf55c7d, 2014-07-17 (annotated)
- Committer:
- viswachaitanya
- Date:
- Thu Jul 17 11:23:58 2014 +0000
- Revision:
- 2:c1387cf55c7d
- Parent:
- 1:14b369c0f314
i2c master test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
viswachaitanya | 0:7811fb22b3de | 1 | #include "mbed.h" //library // |
viswachaitanya | 2:c1387cf55c7d | 2 | #define get_hk_data 1 //sample telecommands |
viswachaitanya | 2:c1387cf55c7d | 3 | #define telecommand2 2 |
viswachaitanya | 2:c1387cf55c7d | 4 | #define telecommand3 3 |
greenroshks | 1:14b369c0f314 | 5 | #define telecommand4 '4' |
greenroshks | 1:14b369c0f314 | 6 | #define telecommand5 '5' |
greenroshks | 1:14b369c0f314 | 7 | #define telecommand6 '6' |
greenroshks | 1:14b369c0f314 | 8 | #define telecommand7 '7' |
greenroshks | 1:14b369c0f314 | 9 | #define telecommand8 '8' |
greenroshks | 1:14b369c0f314 | 10 | #define telecommand9 '9' |
greenroshks | 1:14b369c0f314 | 11 | #define telecommand10 '10' |
viswachaitanya | 0:7811fb22b3de | 12 | |
greenroshks | 1:14b369c0f314 | 13 | char receive_byte(); //funtion to receive float data |
greenroshks | 1:14b369c0f314 | 14 | |
greenroshks | 1:14b369c0f314 | 15 | |
greenroshks | 1:14b369c0f314 | 16 | struct SensorData //HK_data_structure |
viswachaitanya | 0:7811fb22b3de | 17 | { |
greenroshks | 1:14b369c0f314 | 18 | char voltage[10]; |
greenroshks | 1:14b369c0f314 | 19 | char current[10]; |
greenroshks | 1:14b369c0f314 | 20 | char temp[10]; |
greenroshks | 1:14b369c0f314 | 21 | } ; |
greenroshks | 1:14b369c0f314 | 22 | void FUNC_I2C_MASTER_MAIN(int command, int slave_address, int iterations); |