Lines Matching refs:I2cLockMethod
37 I2cMethod和I2cLockMethod定义:
44 struct I2cLockMethod { // 锁机制操作结构体
50 在适配层中,I2cMethod必须被实现,I2cLockMethod可根据实际情况考虑是否实现。核心层提供了默认的I2cLockMethod,其中使用mutex作为保护临界区的锁:
69 static const struct I2cLockMethod g_i2cLockOpsDefault = {
75 …tex可能导致休眠,而中断上下文不允许休眠)时,驱动适配者可以考虑使用其他类型的锁来实现一个自定义的I2cLockMethod。一旦实现了自定义的I2cLockMethod,默认的I2cLockM…
83 **表 2** I2cLockMethod结构体成员函数功能说明
110 - 实例化I2cCntlr成员I2cMethod和I2cLockMethod。
113 > 实例化I2cCntlr成员I2cMethod和I2cLockMethod,详见[接口说明](#接口说明)。
270 const struct I2cLockMethod *lockOps;
274 - I2cCntlr成员钩子函数结构体I2cMethod的实例化,和锁机制钩子函数结构体I2cLockMethod实例化,其他成员在Init函数中初始化。
282 static const struct I2cLockMethod g_lockOps = {
338 … hi35xx->cntlr.lockOps = &g_lockOps; // 【必要】I2cLockMethod的实例化对象的挂载