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

Function writeRegisterSPI_8

modules/drivers/arducam/modArducam.c:337–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337void writeRegisterSPI_8(ArduCAM ac, uint8_t reg, uint8_t value)
338{
339 uint8_t data[2];
340
341 data[0] = reg | 0x80;
342 data[1] = value;
343 modSPITx(&ac->spiConfig, data, 2);
344
345 modSPIActivateConfiguration(NULL);
346}
347
348uint8_t readRegisterSPI_FIFO(ArduCAM ac)
349{

Callers 1

xs_arducamFunction · 0.85

Calls 2

modSPITxFunction · 0.50

Tested by

no test coverage detected