MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / readWords

Method readWords

modules/drivers/it8951/it8951.js:323–339  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

321 }
322 }
323 readWords(result) {
324 this.waitBusy();
325 this.select.write(0);
326 this.spi.write16(0x1000);
327 this.waitBusy();
328
329 // dummy
330 this.spi.transfer16(0);
331 this.waitBusy();
332
333 for (let i = 0, length = result.length; i < length; i++)
334 result[i] = this.spi.transfer16(0);
335
336 this.select.write(1);
337
338 return result;
339 }
340}
341
342const Filter = {

Callers 2

checkAFSRMethod · 0.95
getSysInfoMethod · 0.95

Calls 3

waitBusyMethod · 0.95
write16Method · 0.80
writeMethod · 0.65

Tested by

no test coverage detected