Community
cancel
Showing results for 
Search instead for 
Did you mean: 
zzz2
Beginner
76 Views

Bay Trail E3800 Win7 I/O Drivers Interface (SPI and I2C)

 

NaveedGhoriCommunity Member

I am in the process of writing drivers to access devices attached to the SPI and I2C ports on an E3845.

 

Does anyone have full working examples for any SPI and/or I2C devices?

 

I have read through the following document and used the code from within it without success: Intel® AtomTM Processor E3800 Windows 7 IO Driver Software Developer’s Manual


Question:

  • Re: IOCTL_I2C_EXECUTE_READ, IOCTL_I2C_EXECUTE_WRITE
    • How do I specify the device register to be read/writing when sending a command
    • The I2C_SINGLE_TRANSMISSION only allows for a slave address but not the address for the register we are accessing.
    • In any case I was unable to read from the device using the code provided.
  • Re; IOCTL_SPI_READ, IOCTL_SPI_WRITE
    • How do I specify the device register to be read/writing when sending a command
    • The SPI_TRANSFER_BUFFER has no place to specify the address we wish to read from.
    • From the example code in the document the read commands does not give an error but all the bytes rad are 0xFF..

 

Please help with example code or documentation detailing how to specify the address to read from in both interfaces.

0 Kudos
0 Replies
Reply