karelv / Mbed 2 deprecated i2c_io_lpc4088

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers my_i2c.h Source File

my_i2c.h

00001 #ifndef __MY_I2C_H__
00002 #define __MY_I2C_H__
00003 
00004 bool my_i2cStart (unsigned char slaveAddress);
00005 bool my_i2cStop ();
00006 bool my_i2cRepeatedStart (unsigned char slaveAddress);
00007 bool my_i2cWrite (unsigned char data);
00008 unsigned char my_i2cReadByte ();
00009 unsigned char my_i2cReadAck ();
00010 unsigned char my_i2cReadNak ();
00011 unsigned char my_i2cRead (unsigned char ack);
00012 void my_i2cWriteByte (unsigned char byte);
00013 bool my_i2cGetAck ();
00014 
00015 #endif // __MY_I2C_H__