Searched refs:I2cMethod (Results 1 – 10 of 10) sorted by relevance
37 I2cMethod和I2cLockMethod定义:40 struct I2cMethod {50 在适配层中,I2cMethod必须被实现,I2cLockMethod可根据实际情况考虑是否实现。核心层提供了默认的I2cLockMethod,其中使用mutex作为保护临界区的锁:77 **表 1** I2cMethod结构体成员函数功能说明110 - 实例化I2cCntlr成员I2cMethod和I2cLockMethod。113 > 实例化I2cCntlr成员I2cMethod和I2cLockMethod,详见[接口说明](#接口说明)。243 …完成驱动入口注册之后,下一步就是以核心层I2cCntlr对象的初始化为核心,包括驱动适配者自定义结构体(传递参数和数据),实例化I2cCntlr成员I2cMethod(让用户可以通过接口来调用驱动…269 const struct I2cMethod *ops;274 - I2cCntlr成员钩子函数结构体I2cMethod的实例化,和锁机制钩子函数结构体I2cLockMethod实例化,其他成员在Init函数中初始化。278 static const struct I2cMethod g_method = {[all …]
26 struct I2cMethod;34 const struct I2cMethod *ops;38 struct I2cMethod { struct
36 **I2cMethod** and **I2cLockMethod**:39 struct I2cMethod {49 At the adaptation layer, **I2cMethod** must be implemented, and **I2cLockMethod** can be implemente…76 **Table 2** Function in **I2cMethod**106 - Instantiate **I2cMethod** and **I2cLockMethod** in **I2cCntlr**.232 … member functions (**Bind**, **Init** and **Release**) to instantiate **I2cMethod** in **I2cCntlr*…258 const struct I2cMethod *ops;263 - Instantiate **I2cMethod** and **I2cLockMethod**. Other members are initialized by **Init**.267 static const struct I2cMethod g_method = {326 hi35xx->cntlr.ops = &g_method; // (Mandatory) Hook the I2cMethod instance.
69 static struct I2cMethod g_dummyMethod = {
79 static struct I2cMethod g_method = {
58 struct I2cMethod g_i2cHostMethod = {
62 struct I2cMethod gI2cHostMethod = {
47 struct I2cMethod g_i2cHostMethod = {
231 I2cMethod结构体在i2c\_core.h中定义,其中通过函数指针的方式定义了I2C需要实现的方法,transfer方法为用于传输的钩子函数,在驱动中需要做具体实现并对函数指针赋值。279 static struct I2cMethod g_method = {
230 …The **I2cMethod** structure is defined in the **i2c\_core.h** header file. This structure defi…278 static struct I2cMethod g_method = {