Part Number: MSP432P401R
I noticed a weird behaviour with library function
uint_fast8_t SPI_getInterruptStatus(uint32_t moduleInstance, uint16_t mask)
In breif, used to check whether UCxTXBUF is ready for a new byte during a multi-byte transmission, if previously sent byte MSB was '1' it sets SPI SIMO pin high.
I replaced
while (!SPI_getInterruptStatus(DevHandle->SensorSpiModule, SENSE_SPI_TRANSMIT_INTERRUPT));
with the following instruction
while(!(UCTXIFG & SENSE_SPI_INTERRUPT_FLAG_REGISTER));
circumventing the issue, that actually was negatively affecting communication with my slave SPI sensor.
Is that the expected behaviour for SPI_getInterruptStatus anyway?