RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
rt_i2c_bus_device_ops结构体 参考

#include <dev_i2c.h>

成员变量

rt_ssize_t(* master_xfer )(struct rt_i2c_bus_device *bus, struct rt_i2c_msg msgs[], rt_uint32_t num)
 
rt_ssize_t(* slave_xfer )(struct rt_i2c_bus_device *bus, struct rt_i2c_msg msgs[], rt_uint32_t num)
 
rt_err_t(* i2c_bus_control )(struct rt_i2c_bus_device *bus, int cmd, void *args)
 

详细描述

I2C Bus Device Operations

在文件 dev_i2c.h226 行定义.

结构体成员变量说明

◆ master_xfer

rt_ssize_t(* rt_i2c_bus_device_ops::master_xfer) (struct rt_i2c_bus_device *bus, struct rt_i2c_msg msgs[], rt_uint32_t num)

在文件 dev_i2c.h228 行定义.

◆ slave_xfer

rt_ssize_t(* rt_i2c_bus_device_ops::slave_xfer) (struct rt_i2c_bus_device *bus, struct rt_i2c_msg msgs[], rt_uint32_t num)

在文件 dev_i2c.h231 行定义.

◆ i2c_bus_control

rt_err_t(* rt_i2c_bus_device_ops::i2c_bus_control) (struct rt_i2c_bus_device *bus, int cmd, void *args)

在文件 dev_i2c.h234 行定义.