green rosh
/
i2c_master
I2C master
Fork of i2c_master by
master.h@1:14b369c0f314, 2014-07-15 (annotated)
- Committer:
- greenroshks
- Date:
- Tue Jul 15 10:06:29 2014 +0000
- Revision:
- 1:14b369c0f314
- Parent:
- 0:7811fb22b3de
Master final
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
viswachaitanya | 0:7811fb22b3de | 1 | #include "mbed.h" //library // |
greenroshks | 1:14b369c0f314 | 2 | #define get_hk_data '1' //sample telecommands |
greenroshks | 1:14b369c0f314 | 3 | #define telecommand2 '2' |
greenroshks | 1:14b369c0f314 | 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); |