Files
nowkas-iv-9-uhr/code/inc/i2c.h
2019-09-21 14:41:54 +02:00

23 lines
519 B
C

#ifndef _I2C_h
#define _I2C_h
/** defines the data direction (reading from I2C device) in i2c_start(),i2c_rep_start() */
#define I2C_READ 1
/** defines the data direction (writing to I2C device) in i2c_start(),i2c_rep_start() */
#define I2C_WRITE 0
#define SCL_CLOCK 96000L //i2c clockspeed
void i2c_init(void);
unsigned char i2c_start(unsigned char address);
/*
void i2c_stop(void);
unsigned char i2c_write( unsigned char data );
unsigned char i2c_readAck(void);
unsigned char i2c_readNak(void);
*/
#endif