Skip to content

Commit

Permalink
linux: Fix i2c-dev constants
Browse files Browse the repository at this point in the history
This commit enables basic i2c operations (open/read/write/close) from userland.
Further i2c / smbus transfer modes are on the way.
  • Loading branch information
mickeyl authored and ricotz committed Jun 30, 2021
1 parent 9b83a14 commit faa83eb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions vapi/linux.vapi
Expand Up @@ -875,7 +875,24 @@ namespace Linux {
[CCode (cprefix = "I2C_", lower_case_cprefix = "i2c_")]
namespace I2C {

[CCode (cheader_filename = "linux/i2c-dev.h")]
const int RETRIES;
[CCode (cheader_filename = "linux/i2c-dev.h")]
const int TIMEOUT;
[CCode (cheader_filename = "linux/i2c-dev.h")]
const int SLAVE;
[CCode (cheader_filename = "linux/i2c-dev.h")]
const int SLAVE_FORCE;
[CCode (cheader_filename = "linux/i2c-dev.h")]
const int TENBIT;
[CCode (cheader_filename = "linux/i2c-dev.h")]
const int FUNCS;
[CCode (cheader_filename = "linux/i2c-dev.h")]
const int RDWR;
[CCode (cheader_filename = "linux/i2c-dev.h")]
const int PEC;
[CCode (cname = "SMBUS", cheader_filename = "linux/i2c-dev.h")]
const int SMBUS_TRANSFER;

[CCode (cprefix = "", lower_case_cprefix = "i2c_smbus_")]
namespace SMBUS {
Expand Down

0 comments on commit faa83eb

Please sign in to comment.