working code of cdms with i2c

Dependencies:   mbed-rtos mbed

Fork of rtos_basic by mbed official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers master.h Source File

master.h

00001 #include "mbed.h"                          //library                                              
00002 #define get_hk_data '1'                      //sample telecommands
00003 #define telecommand2 '2'
00004 #define telecommand3 '3'
00005 #define telecommand4 '4'
00006 #define telecommand5 '5'
00007 
00008 const int addr = 0x20;                     //slave address 
00009 char receive_byte();                      //funtion to receive float data 
00010 void FUNC_I2C_MASTER_MAIN(char command, int slave_address, int iterations);