yabo国际娱乐Dialog Semiconductor客户支持- da1458x https://support.dialog-semiconductor.com/resource-keywords/da1458x I2C读写 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/i2c-read-write

Hi all,
I am working on I2C interface code. "我引用了i2c_eeprom驱动程序代码。一些我不理解的代码片段意味着代码的确切工作。如果有人帮助理解,那么它将对我的传感器接口非常有帮助。

从设备使用的是IQS333触摸传感器。我不能正常沟通的地方。

以下是代码片段,请解释就绪字节函数
1中的工作
。SEND_I2C_COMMAND (0 x0100);//设置R/W bit to 1(读访问)
2WAIT_FOR_RECEIVED_BYTE (); // Wait for received data

and i2c_eeprom_error_code
i2c_eeprom_error_code i2c_wait_until_i2c_eeprom_ready(void)
{
uint16_t ui16tx_abrt_source;

// Check if ACK is received
for (uint32_t ui32Indx = 0; ui32Indx < I2C_MAX_RETRIES; ui32Indx++)
{
SEND_I2C_COMMAND(0x08); // Make a dummy access
WAIT_UNTIL_I2C_FIFO_IS_EMPTY(); // Wait until Tx FIFO is empty
WAIT_UNTIL_NO_MASTER_ACTIVITY(); // Wait until no master activity
ui16tx_abrt_source = GetWord16(I2C_TX_ABRT_SOURCE_REG); // Read the I2C_TX_ABRT_SOURCE_REG register
GetWord16(I2C_CLR_TX_ABRT_REG); // Clear I2C_TX_ABRT_SOURCE register
if ((ui16tx_abrt_source & ABRT_7B_ADDR_NOACK) == 0)
{
return I2C_NO_ERROR;
}
}
return I2C_7B_ADDR_NOACK_ERROR;
}

above attached snippet.
Urgent help need.

Thanks and Regards
Rohit

Device: 
2018年10月9日星期二07:37:44 +0000 Rajapurerohit 240722, https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/i2c-read-write#comments
DA1458X扩展睡眠模式 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/da1458x-extended-sleep-mode

亲爱的Dialog_Support,

我正在为我的项目开发扩展睡眠模式。
1。我的要求是,我想保持我的设备在睡眠模式(ble_radio_off)完全和设备应该唤醒每当移动应用程序试图连接。
连接完成后,设备应执行必要的BLE任务(即读、写和通知),任务完成后设备应再次进入睡眠模式。< / p > < p > 2。我的任务很少是基于timer0的。所以它是可能唤醒我的设备使用timer0?如果是,那么我应该考虑哪些因素呢?

我有点困惑如何实现上述睡眠模式任务。谁能帮我完成我的任务?

感谢和敬意
Rohit

关键词: