TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: PAUL
date: 2017-12-27 08:53:00
subject: Re: For the I2C-1 `file`,

In article , address@not.available says...
>
> Paul,
>
> > NO I2C has special modes for extended addressing of the actual devices
>
> You are being ambigue there.   But AFAIK the I2C *protocol* is fully
> agnostic to it.

NO you are cvonfucsing Addresses INTERNAL to the DEVICE, which as far as
I2C bus is concerned is just data being sent to the device.

I2C addressing is limited to TWO modes 7 bit addressing and 10 bit
addressing, which uses RESERVED 7 bit addresses (in hex 78 to 7F) for
I2C expansion. 10 bit addressing uses a first byte of hex 78 to 7B,
where 7C to 7F are reserved for future expansion. FEW devices actually
use 10 bit addressing.

I2C does NOT support 16 bit addressing by adding another byte to the
address

Your device MIGHT support INTERNALLY 16 bit addressing that dpends on
the device NOT I2C.

>
> > Actuallyy with all I2C devices your question IS related to the device
>
> No.

Fine if you don't know what the device requires then any special
conditions like RESTART sequence will potentially be a problem to you.


> > AND the capabilities of the driver
>
> Yes.

The important word was AND.

>
> > Address and data
> > or command and data
> >
> > IS SPECIFIC to that device, over many devices I have seen many methods
>
> Correct.  But it has got zero to do with my question.
>
> > I would suggest you need to look at how to talk to the i2c driver using
> > structures and settings for
> >
> > write
> > write and read with restart
> > ignore ACK if required
>
> My apologies, but no.    I was asking for and expecting an answer related to
> the usage of sysfs.   I definitily do not want to go the low-level way (and
> by it most likely bind the resulting code to a specific version of the
> Raspberry Pi).
>
> Regards,
> Rudy Wieser

Fine carry on with your delusions as I have made MANY things work on I2C
on MANY platforms and many systems down to small micros for over 20
years. You have been given advice and if you think you know all the
answers then carry on but I won't bother nor will probably others


--
Paul Carpenter          | paul@pcserviceselectronics.co.uk
    PC Services
 Logic Gate Education
     Timing Diagram Font
    For those web sites you hate

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.