yabo国际娱乐对话框半导体客户支持- I2C DMA https://support.dialog-semiconductor.com/resource-keywords/i2c-dma en I2C DMA https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/i2c-dma

Hi,

I am using I2C to communicate with a sensor, and need to use DMA for a high-bandwidth read operation.
I am able to get the sensor ready to send the data, and can see the data being transmitted if I write 0x0100 to I2C_DATA_CMD_REG (as is done in i2c_eeprom.c).
What I have not yet managed is to use the DMA to complete this exchange. I can queue several reads by writing to I2C_DATA_CMD_REG more than once, but I haven't worked out if I can
have the DMA automate the process.

Can anyone tell me what I need to do to get data out of an I2C slave by DMA?

Thank you,
Eric

Keywords: 
Device: 
Tue, 08 Aug 2017 12:54:23 +0000 Eric Scammell 77873 at https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/i2c-dma#comments