Files
quadrotor/i2c.h
Gavan Fantom 4d37c82b12 * Allow COPTIM to be set outside Makefile
* Use -Wall -Werror
* Fix some warnings
2011-05-18 09:55:02 +00:00

18 lines
390 B
C

#ifndef __I2C_H
#define __I2C_H
#include "types.h"
void init_i2c(void);
extern int i2cstat;
int i2c_wait(void);
void i2c_go(void);
int i2c_conreg(void);
int i2c_statreg(void);
bool i2c_send_start(void);
bool i2c_send_address(int addr, bool write);
bool i2c_send_data(unsigned int data);
bool i2c_receive_data(unsigned int *data, bool last);
void i2c_send_stop(void);
#endif /* __I2C_H */