Searched refs:I2cLockMethod (Results 1 – 4 of 4) sorted by relevance
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函数中初始化。[all …]
27 struct I2cLockMethod;35 const struct I2cLockMethod *lockOps;54 struct I2cLockMethod { struct
36 **I2cMethod** and **I2cLockMethod**:43 struct I2cLockMethod {// Structure for the lock operation.49 …mplemented, and **I2cLockMethod** can be implemented based on service requirements. The core layer…68 static const struct I2cLockMethod g_i2cLockOpsDefault = {74 …er type of lock to implement **I2cLockMethod**. The implemented **I2cLockMethod** will replace the…82 **Table 2** Functions in **I2cLockMethod**106 - Instantiate **I2cMethod** and **I2cLockMethod** in **I2cCntlr**.259 const struct I2cLockMethod *lockOps;263 - Instantiate **I2cMethod** and **I2cLockMethod**. Other members are initialized by **Init**.271 static const struct I2cLockMethod g_lockOps = {[all …]
48 static const struct I2cLockMethod g_i2cLockOpsDefault = {