[vala/wip/mickeyl/linux-socketcan] linux: fix i2c-dev constants
- From: Dr. Mickey Lauer <mlauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/mickeyl/linux-socketcan] linux: fix i2c-dev constants
- Date: Wed, 30 Jun 2021 11:34:56 +0000 (UTC)
commit 67443da2ddec1b25d378f610434487b27857cea6
Author: Dr. Michael Lauer <mickey vanille-media de>
Date: Wed Jun 30 13:32:10 2021 +0200
linux: fix i2c-dev constants
This commit enables basic i2c operations (open/read/write/close) from userland.
Further i2c / smbus transfer modes are on the way.
vapi/linux.vapi | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index bf6ef9c2b..cb580308f 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]