/AliOS-Things-master/components/amp/libjs/lib/ |
A D | i2c.js | 41 writeMem(memaddr, data) { argument 45 __native.I2C.writeReg(this.i2cInstance, memaddr, data); 48 readMem(memaddr, bytes) { argument 52 return __native.I2C.readReg(this.i2cInstance, memaddr, bytes);
|
/AliOS-Things-master/components/amp/jslib/src/ |
A D | i2c.js | 44 writeMem(memaddr, data) { argument 48 return this.i2cInstance.writeReg(memaddr, byteArrayToArrayBuffer(data)); 51 readMem(memaddr, bytes) { argument 55 return Array.prototype.slice.call(new Uint8Array(this.i2cInstance.readReg(memaddr, bytes))); argument
|
/AliOS-Things-master/components/amp/example-js/ |
A D | i2c.js | 3 var memaddr = 0x18 variable 21 sensor.writeMem(memaddr, msgbuf) 24 var vol = sensor.readMem(memaddr, 2)
|
/AliOS-Things-master/solutions/javascript_demo/board/haas600/ |
A D | i2c.js | 3 var memaddr = 0x18 variable 22 sensor.writeMem(memaddr, msgbuf) 24 var vol = sensor.readMem(memaddr, 2)
|
/AliOS-Things-master/solutions/javascript_demo/board/haas-edu-k1/ |
A D | i2c.js | 3 var memaddr = 0x18 variable 22 sensor.writeMem(memaddr, msgbuf) 24 var vol = sensor.readMem(memaddr, 2)
|
/AliOS-Things-master/solutions/javascript_demo/board/haas100/ |
A D | i2c.js | 3 var memaddr = 0x18 variable 22 sensor.writeMem(memaddr, msgbuf) 24 var vol = sensor.readMem(memaddr, 2)
|
/AliOS-Things-master/hardware/chip/haas1000/csi/ |
A D | iic.c | 190 uint16_t memaddr, csi_iic_mem_addr_size_t memaddr_size, in csi_iic_mem_send() argument 231 txbuf[0] = (uint8_t)memaddr; in csi_iic_mem_send() 246 uint16_t memaddr, csi_iic_mem_addr_size_t memaddr_size, in csi_iic_mem_receive() argument 288 txrxbuf[0] = (uint8_t)memaddr; in csi_iic_mem_receive()
|
/AliOS-Things-master/hardware/chip/rtl872xd/csi_driver/iic/ |
A D | iic.c | 359 int32_t csi_iic_mem_send(csi_iic_t *iic, uint32_t devaddr,uint16_t memaddr, csi_iic_mem_addr_size_t… in csi_iic_mem_send() argument 411 buf[i++] = (memaddr) & 0xFF; in csi_iic_mem_send() 413 buf[i++] = (memaddr >> 8) & 0xFF; in csi_iic_mem_send() 427 int32_t csi_iic_mem_receive(csi_iic_t *iic,uint32_t devaddr, uint16_t memaddr,csi_iic_mem_addr_size… in csi_iic_mem_receive() argument 440 memaddr_t[0] = (memaddr) & 0xFF; in csi_iic_mem_receive() 441 memaddr_t[1] = (memaddr >> 8) & 0xFF; in csi_iic_mem_receive()
|
/AliOS-Things-master/components/csi/csi2/include/drv/ |
A D | usi_iic.h | 130 int32_t csi_usi_iic_mem_send(csi_iic_t *iic, uint32_t devaddr, uint16_t memaddr, csi_iic_mem_addr_s… 144 int32_t csi_usi_iic_mem_receive(csi_iic_t *iic, uint32_t devaddr, uint16_t memaddr, csi_iic_mem_add…
|
A D | iic.h | 207 int32_t csi_iic_mem_send(csi_iic_t *iic, uint32_t devaddr, uint16_t memaddr, csi_iic_mem_addr_size_… 221 int32_t csi_iic_mem_receive(csi_iic_t *iic, uint32_t devaddr, uint16_t memaddr, csi_iic_mem_addr_si…
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | machine_i2c.c | 504 STATIC size_t fill_memaddr_buf(uint8_t *memaddr_buf, uint32_t memaddr, uint8_t addrsize) { in fill_memaddr_buf() argument 510 memaddr_buf[memaddr_len++] = memaddr >> i; in fill_memaddr_buf() 515 STATIC int read_mem(mp_obj_t self_in, uint16_t addr, uint32_t memaddr, uint8_t addrsize, uint8_t *b… in read_mem() argument 520 size_t memaddr_len = fill_memaddr_buf(&memaddr_buf[0], memaddr, addrsize); in read_mem() 531 STATIC int write_mem(mp_obj_t self_in, uint16_t addr, uint32_t memaddr, uint8_t addrsize, const uin… in write_mem() argument 536 size_t memaddr_len = fill_memaddr_buf(&memaddr_buf[0], memaddr, addrsize); in write_mem()
|
/AliOS-Things-master/components/drivers/peripheral/i2c/src/ |
A D | i2c_core.c | 759 __weak int32_t csi_iic_mem_send(csi_iic_t *iic, uint32_t devaddr, uint16_t memaddr, csi_iic_mem_add… in csi_iic_mem_send() argument 776 __weak int32_t csi_iic_mem_receive(csi_iic_t *iic, uint32_t devaddr, uint16_t memaddr, csi_iic_mem_… in csi_iic_mem_receive() argument
|