green rosh
/
i2c_slave_chaitanya
third commit
Fork of i2c_slave by
slave.h@1:37d4026fa600, 2014-07-01 (annotated)
- Committer:
- greenroshks
- Date:
- Tue Jul 01 07:25:58 2014 +0000
- Revision:
- 1:37d4026fa600
- Parent:
- 0:ad4485166cfe
second commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
viswachaitanya | 0:ad4485166cfe | 1 | #include "mbed.h" |
greenroshks | 1:37d4026fa600 | 2 | |
viswachaitanya | 0:ad4485166cfe | 3 | void split(float); //function to split 4 bcurrentte data |
viswachaitanya | 0:ad4485166cfe | 4 | void write_to_master(char); //function to write data to master |
greenroshks | 1:37d4026fa600 | 5 | void FUNC_I2C_SLAVE_MAIN(); |
viswachaitanya | 0:ad4485166cfe | 6 | |
viswachaitanya | 0:ad4485166cfe | 7 | struct SensorData //HK_data_structure |
viswachaitanya | 0:ad4485166cfe | 8 | { |
viswachaitanya | 0:ad4485166cfe | 9 | float voltage[10]; |
viswachaitanya | 0:ad4485166cfe | 10 | float current[10]; |
viswachaitanya | 0:ad4485166cfe | 11 | float temp[10]; |
viswachaitanya | 0:ad4485166cfe | 12 | //float Battery[2]; |
greenroshks | 1:37d4026fa600 | 13 | } ; |