Advertisement
Guest User

beaglebone_i2c.h

a guest
May 2nd, 2013
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #ifndef _BEAGLEBONE_LOCAL_I2C_
  2. #define _BEAGLEBONE_LOCAL_I2C_
  3.  
  4. #include <linux/i2c-dev.h>
  5.  
  6. int i2c_write(const unsigned char chain, const unsigned int address, unsigned char *data, const unsigned int numBytes);
  7. int i2c_read(const unsigned char chain, const unsigned int address, unsigned char reg, unsigned char *data, const unsigned char numBytes);
  8. int i2c_initialize( void );
  9. int i2c_wtf( void );
  10. int i2c_cleanup( void );
  11.  
  12. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement