All of lore.kernel.org
 help / color / mirror / Atom feed
* i2c-dev wrapper
@ 2019-09-27 11:54 Brad Bishop
  2019-09-30  0:59 ` Tao Ren
  0 siblings, 1 reply; 4+ messages in thread
From: Brad Bishop @ 2019-09-27 11:54 UTC (permalink / raw)
  To: OpenBMC Maillist; +Cc: shawnmm

Does anyone have a favorite i2c-dev API wrapper?  Preferably but not  
necessarily in C++?

thx - brad

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: i2c-dev wrapper
  2019-09-27 11:54 i2c-dev wrapper Brad Bishop
@ 2019-09-30  0:59 ` Tao Ren
  2019-09-30  1:25   ` Yong Li
  0 siblings, 1 reply; 4+ messages in thread
From: Tao Ren @ 2019-09-30  0:59 UTC (permalink / raw)
  To: Brad Bishop, OpenBMC Maillist; +Cc: shawnmm@linux.ibm.com

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: i2c-dev wrapper
  2019-09-30  0:59 ` Tao Ren
@ 2019-09-30  1:25   ` Yong Li
  2019-09-30 13:37     ` Brad Bishop
  0 siblings, 1 reply; 4+ messages in thread
From: Yong Li @ 2019-09-30  1:25 UTC (permalink / raw)
  To: 'Tao Ren', 'Brad Bishop',
	'OpenBMC Maillist'
  Cc: shawnmm

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@lists.ozlabs.org> On Behalf Of Tao Ren
Sent: Monday, September 30, 2019 9:00 AM
To: Brad Bishop <bradleyb@fuzziesquirrel.com>; OpenBMC Maillist <openbmc@lists.ozlabs.org>
Cc: shawnmm@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: i2c-dev wrapper
  2019-09-30  1:25   ` Yong Li
@ 2019-09-30 13:37     ` Brad Bishop
  0 siblings, 0 replies; 4+ messages in thread
From: Brad Bishop @ 2019-09-30 13:37 UTC (permalink / raw)
  To: Yong Li; +Cc: Tao Ren, OpenBMC Maillist, shawnmm

at 9:25 PM, Yong Li <yong.b.li@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@lists.ozlabs.org> On Behalf Of  
> Tao Ren
> Sent: Monday, September 30, 2019 9:00 AM
> To: Brad Bishop <bradleyb@fuzziesquirrel.com>; OpenBMC Maillist  
> <openbmc@lists.ozlabs.org>
> Cc: shawnmm@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-30 13:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-27 11:54 i2c-dev wrapper Brad Bishop
2019-09-30  0:59 ` Tao Ren
2019-09-30  1:25   ` Yong Li
2019-09-30 13:37     ` Brad Bishop

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.