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

Function destm32sCommand

modules/drivers/destm32s/modDestm32s.c:628–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628void destm32sCommand(spiDisplay sd, uint8_t command, const uint8_t *data, uint16_t count)
629{
630 SCREEN_DC_COMMAND;
631 modSPITxRx(&sd->spiConfig, &command, sizeof(command)); // could use modSPITx, but modSPITxRx is synchronous and callers rely on that
632
633 if (count) {
634 SCREEN_DC_DATA;
635 modSPITx(&sd->spiConfig, (uint8_t *)data, count);
636 }
637
638 modSPIActivateConfiguration(NULL);
639}
640
641#if MODDEF_DESTM32S_MODDABLE_THREE
642

Callers 6

destm32sInit_bwFunction · 0.85
modDestm32s.cFile · 0.85
destm32sEnd_bwFunction · 0.85
destm32sInit_2g1rFunction · 0.85
destm32sEnd_2g1rFunction · 0.85
destm32sCommand_bw1rFunction · 0.85

Calls 3

modSPITxRxFunction · 0.50
modSPITxFunction · 0.50

Tested by

no test coverage detected