All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yong Li" <yong.b.li@linux.intel.com>
To: "'Tao Ren'" <taoren@fb.com>,
	"'Brad Bishop'" <bradleyb@fuzziesquirrel.com>,
	"'OpenBMC Maillist'" <openbmc@lists.ozlabs.org>
Cc: <shawnmm@linux.ibm.com>
Subject: RE: i2c-dev wrapper
Date: Mon, 30 Sep 2019 09:25:20 +0800	[thread overview]
Message-ID: <000701d5772d$ed76d7c0$c8648740$@linux.intel.com> (raw)
In-Reply-To: <7bbd7b65-9cb7-8ca5-4d60-51d48e8735d1@fb.com>

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

  reply	other threads:[~2019-09-30  1:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-27 11:54 i2c-dev wrapper Brad Bishop
2019-09-30  0:59 ` Tao Ren
2019-09-30  1:25   ` Yong Li [this message]
2019-09-30 13:37     ` Brad Bishop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000701d5772d$ed76d7c0$c8648740$@linux.intel.com' \
    --to=yong.b.li@linux.intel.com \
    --cc=bradleyb@fuzziesquirrel.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=shawnmm@linux.ibm.com \
    --cc=taoren@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.