i2c-dev wrapper

Brad Bishop bradleyb at fuzziesquirrel.com
Mon Sep 30 23:37:26 AEST 2019


at 9:25 PM, Yong Li <yong.b.li at linux.intel.com> wrote:

> 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

Thanks Tao and Yong for these pointers.  Will have a look!

-brad


More information about the openbmc mailing list