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

Method writeCommand

modules/drivers/it8951/it8951.js:265–272  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

263 this.select.write(1);
264 }
265 writeCommand(command) {
266 this.waitBusy();
267 this.select.write(0);
268 this.spi.write16(0x6000);
269 this.waitBusy();
270 this.spi.write16(command);
271 this.select.write(1);
272 }
273 setTargetMemoryAddress(address) {
274 const h = (address >> 16) & 0xFFFF;
275 const l = address & 0xFFFF;

Callers 8

constructorMethod · 0.95
checkAFSRMethod · 0.95
fillAreaMethod · 0.95
writeArgsMethod · 0.95
writeRegisterMethod · 0.95
getSysInfoMethod · 0.95
endMethod · 0.80
continueMethod · 0.80

Calls 3

waitBusyMethod · 0.95
write16Method · 0.80
writeMethod · 0.65

Tested by

no test coverage detected