Forum Discussion
Hi Jacob
Could you share me the github link to i2c_interface.c that you are referring too?
Are you using the "i2c_interface.c" or the" alt_avalon_i2c.c"?
From the "alt_avalon_i2c_master_tx_rx" function you need to enter the register as part of the buffer.
The "alt_avalon_i2c_master_transmit" will loop through the buffer to transmit the whole array.
I do not see a problem in this implementation.
Regards
Jingyang, Teh
Hello Jingyang.
Sorry, we have been closed for the Christmas break so I am only seeing your response today.
I agree this should work fine since the buffer holds the entire register address and loops through the whole buffer. But it is not working for whatever reason.
The i2c_interface.c is provided to us as confidential from Intel so I cannot publicly share that. Maybe you can poke around at Intel and find it.
I cannot find any flaw in this implementation. I will check again the datasheets of the hardware to make sure I am not missing something.
Thanks,
Jacob