for checking i2c with integrated bae
Dependencies: SDFileSystem mbed-rtos mbed
Diff: master.h
- Revision:
- 0:cb112a717428
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/master.h Mon Sep 15 14:01:49 2014 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" //library // +#define get_hk_data 1 //sample telecommands +#define telecommand2 2 +#define telecommand3 3 +#define telecommand4 '4' +#define telecommand5 '5' +#define telecommand6 '6' +#define telecommand7 '7' +#define telecommand8 '8' +#define telecommand9 '9' +#define telecommand10 '10' + +char receive_byte(); //funtion to receive float data + + +struct SensorData //HK_data_structure +{ + char voltage[10]; + char current[10]; + char temp[10]; +} ; +void FUNC_I2C_MASTER_MAIN(int command, int slave_address, int iterations); \ No newline at end of file