diff options
author | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:45:44 -0500 |
---|---|---|
committer | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:45:44 -0500 |
commit | 304664e3a7db1809ff29e525cc2052dad6256ffa (patch) | |
tree | d43e0a2d26ecac797d45aa68fdd82572635613cb /i2c.c | |
parent | 428e1cde1fb3aa00734742b0491dd3a616c71c61 (diff) |
add better typing to I2C code, add I2C test routine in response.c
Diffstat (limited to 'i2c.c')
-rw-r--r-- | i2c.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,12 +4,13 @@ #include <sys/ioctl.h> #include <linux/i2c.h> #include <linux/i2c-dev.h> +#include <glib.h> #define I2C_BUS "/dev/i2c-3" -int I2C_Write(int address, int value) { +int I2C_Write(gulong address, guchar value) { struct i2c_smbus_ioctl_data argswrite; @@ -29,7 +30,7 @@ int I2C_Write(int address, int value) { } -int I2C_Read(int address) { +guchar I2C_Read(gulong address) { union i2c_smbus_data data; struct i2c_smbus_ioctl_data argsread; |