| 626 | } |
| 627 | |
| 628 | void 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 |
no test coverage detected