Hi everyone, thanks beforehand for your help.
I am developing a project in a MK82FN256VLL15 microcontroller, with which I communicate via DualSPI with an external BLE module.
Using the default "fsl_dspi" driver library, I can send the desired messages from the controller as a master without issue. However, I have seen that the messages are sent with an active low setting, and I would like to change it to active high.
I have looked for different configuration options within the initialization functions of the library:
- "void DSPI_MasterInit(SPI_Type *base, const dspi_master_config_t *masterConfig, uint32_t srcClock_Hz)"
- "void DSPI_MasterGetDefaultConfig(dspi_master_config_t *masterConfig)"
and I have been able to configure the CLK active level (masterConfig->ctarConfig.cpol) and the ChipSelect level (DSPI_SetOnePcsPolarity)
I am also trying to change the idle level of the MOSI line from high (default) to low, to run a couple of specific tests, but I cant seem to find how to do so.
Does this possibility even exist by firmware? Or would I need to invert the bit by bit values in the middle of the MOSI line?
Once again, thanks a lot!