Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2417 Discussions

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

zzz2
Beginner
236 Views

 

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