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

Function arducamChipSelect

modules/drivers/arducam/modArducam.c:398–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398void arducamChipSelect(uint8_t active, modSPIConfiguration config)
399{
400 ArduCAM ac = (ArduCAM)config;
401
402 if (active)
403 modGPIOWrite(&ac->csPin, 0);
404 else {
405 modGPIOWrite(&ac->csPin, 1);
406 ac->startBurst = 1;
407 }
408}

Callers 1

xs_arducamFunction · 0.85

Calls 1

modGPIOWriteFunction · 0.50

Tested by

no test coverage detected