Home
last modified time | relevance | path

Searched refs:addr_width (Results 1 – 14 of 14) sorted by relevance

/AliOS-Things-master/components/drivers/peripheral/i2c/src/
A Di2c_core.c60 aos_status_t _i2c_master_set_addr_mode (i2c_master_dev_t *master, uint32_t addr_width) { in _i2c_master_set_addr_mode() argument
64 if (master->addr_width == addr_width) in _i2c_master_set_addr_mode()
67 if (addr_width == I2C_SLAVE_ADDR_WIDTH_7BIT) { in _i2c_master_set_addr_mode()
69 } else if (addr_width <= I2C_SLAVE_ADDR_WIDTH_10BIT) { in _i2c_master_set_addr_mode()
73 ddkc_warn("invalid addr mode:%d, set to 7 bit mode by default\r\n", addr_width); in _i2c_master_set_addr_mode()
84 master->addr_width = addr_width; in _i2c_master_set_addr_mode()
133 master->addr_width = 0x0; in aos_i2c_open()
339 aos_status_t aos_i2c_addr_width_set (i2c_dev_handle_t dev_h, uint32_t addr_width) { in aos_i2c_addr_width_set() argument
357 slave->config.addr_width = addr_width; in aos_i2c_addr_width_set()
430 ret = _i2c_master_set_addr_mode(master, slave->config.addr_width); in _i2c_tx_rx_prepare()
A Di2c_core.h43 …uint32_t addr_width; /**< used to log i2c host's current address width mode setting, if curren… member
A Di2c_dev.c163 …ret += aos_i2c_addr_width_set(slave, c->c.addr_width ? I2C_SLAVE_ADDR_WIDTH_10BIT : I2C_SLAVE_ADDR… in i2c_device_ioctl()
279 config.addr_width = I2C_SLAVE_ADDR_WIDTH_7BIT; // set to 7-bit address mode by default in i2c_device_open()
/AliOS-Things-master/components/drivers/peripheral/i2c/include/aos/driver/
A Di2c.h46 uint32_t addr_width; /**< device's address mode: 7 bit or 10 bit */ member
91 aos_status_t aos_i2c_addr_width_set (i2c_dev_handle_t dev, uint32_t addr_width);
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmachine_hw_i2c.c191 mp_int_t addr_width = args[ARG_addrsize].u_int; in machine_hw_i2c_make_new() local
194 mp_int_t freq = addr_width = args[ARG_freq].u_int; in machine_hw_i2c_make_new()
207 dev->config.address_width = addr_width; in machine_hw_i2c_make_new()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmachine_hw_i2c.c191 mp_int_t addr_width = args[ARG_addrsize].u_int; in machine_hw_i2c_make_new() local
194 mp_int_t freq = addr_width = args[ARG_freq].u_int; in machine_hw_i2c_make_new()
207 dev->config.address_width = addr_width; in machine_hw_i2c_make_new()
/AliOS-Things-master/components/drivers/peripheral/i2c/include/vfsdev/
A Di2c_dev.h31 unsigned int addr_width:2; /**< 0:7-bit地址模式;1:10-bit地址模式 */ member
/AliOS-Things-master/components/drivers/peripheral/i2c/example/
A Di2c_example.c29 c.c.addr_width = 0; in vfs_i2c_test()
106 config.addr_width = I2C_SLAVE_ADDR_WIDTH_7BIT; in aos_i2c_test()
229 config.addr_width = I2C_SLAVE_ADDR_WIDTH_7BIT; in aos_i2c_mem_test()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmachine_hw_i2c.c236 mp_int_t addr_width = args[ARG_addrsize].u_int; in machine_hw_i2c_make_new() local
252 dev->config.address_width = addr_width; in machine_hw_i2c_make_new()
/AliOS-Things-master/hardware/board/haaseduk1/drivers/sensor/
A Dsensor_i2c_api.c37 c.c.addr_width = address_width; /* 7-bit address */ in sensor_i2c_open()
/AliOS-Things-master/components/amp_adapter/platform/aos/peripheral/
A Daos_hal_i2c.c44 c.c.addr_width = i2c->config.address_width; /* 7-bit address */ in aos_hal_i2c_init()
/AliOS-Things-master/components/drivers/external_device/pca9544/src/
A Dpca9544_i2c_drv.c50 i2c_ctrl.c.addr_width = i2c->config.address_width; /* 7-bit address */ in pca9544_i2c_init()
/AliOS-Things-master/components/drivers/peripheral/i2c/
A DREADME.md92 c.c.addr_width = 0; // I2C从设备地址宽度为7-bit
/AliOS-Things-master/components/sensor/hal/
A Dsensor_drv_api.c48 i2c_ctrl.c.addr_width = i2c->config.address_width; /* 7-bit address */ in vfs_i2c_init()

Completed in 16 milliseconds