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

Function readRegisterSPI_FIFO

modules/drivers/arducam/modArducam.c:348–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348uint8_t readRegisterSPI_FIFO(ArduCAM ac)
349{
350 uint8_t data[2];
351
352 data[0] = SINGLE_FIFO_READ;
353 data[1] = 0;
354 modSPITxRx(&ac->spiConfig, data, 2);
355
356 modSPIActivateConfiguration(NULL);
357
358 return data[1];
359}
360
361uint8_t readRegisterSPI_8(ArduCAM ac, uint8_t reg)
362{

Callers 1

xs_arducam_readFunction · 0.85

Calls 2

modSPITxRxFunction · 0.50

Tested by

no test coverage detected