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

Function ssd1351Command

modules/drivers/ssd1351/modSsd1351.c:304–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302#endif
303
304void ssd1351Command(spiDisplay sd, uint8_t command, const uint8_t *data, uint16_t count)
305{
306 modSPIFlush();
307 SCREEN_DC_COMMAND;
308 modSPITxRx(&sd->spiConfig, &command, sizeof(command)); // could use modSPITx, but modSPITxRx is synchronous and callers rely on that
309
310 if (count) {
311 SCREEN_DC_DATA;
312 modSPITxRx(&sd->spiConfig, (uint8_t *)data, count);
313 }
314}
315
316void ssd1351Init(spiDisplay sd)
317{

Callers 2

ssd1351InitFunction · 0.85
ssd1351BeginFunction · 0.85

Calls 2

modSPIFlushFunction · 0.50
modSPITxRxFunction · 0.50

Tested by

no test coverage detected