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

Function readRegisterSPI_8

modules/drivers/arducam/modArducam.c:361–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361uint8_t readRegisterSPI_8(ArduCAM ac, uint8_t reg)
362{
363 uint8_t data[2];
364
365 data[0] = reg;
366 data[1] = 0;
367 modSPITxRx(&ac->spiConfig, data, 2);
368
369 modSPIActivateConfiguration(NULL);
370
371 return data[1];
372}
373
374uint8_t readRegisterSPI_1(ArduCAM ac, uint8_t addr, uint8_t bit)
375{

Callers 3

xs_arducamFunction · 0.85
xs_arducam_captureFunction · 0.85
readRegisterSPI_1Function · 0.85

Calls 2

modSPITxRxFunction · 0.50

Tested by

no test coverage detected