i2c-dev wrapper

Yong Li yong.b.li at linux.intel.com
Mon Sep 30 11:25:20 AEST 2019


FYI, there is an i2c Write/Read API in libpmid for ipmi commands:
https://github.com/openbmc/phosphor-host-ipmid/blob/master/libipmid/utils.cpp#L403

Thanks,
Yong

-----Original Message-----
From: openbmc <openbmc-bounces+yong.b.li=linux.intel.com at lists.ozlabs.org> On Behalf Of Tao Ren
Sent: Monday, September 30, 2019 9:00 AM
To: Brad Bishop <bradleyb at fuzziesquirrel.com>; OpenBMC Maillist <openbmc at lists.ozlabs.org>
Cc: shawnmm at linux.ibm.com
Subject: Re: i2c-dev wrapper

On 9/27/19 4:54 AM, Brad Bishop wrote:
> Does anyone have a favorite i2c-dev API wrapper?  Preferably but not necessarily in C++?

i2c-tools (below url) provides several easy-to-use APIs. Maybe you are looking for more APIs?

https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/tree/include/i2c/smbus.h


Cheers,

Tao



More information about the openbmc mailing list