This repository has been archived on 2025-03-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rc2007-rescue/i2c.h
2007-04-04 12:08:03 +00:00

13 lines
297 B
C

#ifndef _ROBOCUP_I2C_H_
#define _ROBOCUP_I2C_H_
#include <stdint.h>
void initI2C();
bool I2CSendByte(uint8_t addr, uint8_t data);
bool I2CSend(uint8_t addr, uint8_t *data, int length);
bool I2CRecvByte(uint8_t addr, uint8_t *data);
int I2CRecv(uint8_t addr, uint8_t *data, int length);
#endif