/* Set or reset Slave chip csn signal output.  */
void exSPI_CSInternalSelected(SPI_TypeDef *spi, FunctionalState state)
/* Set or reset Slave chip csn signal output.  */
void exSPI_CSInternalSelected(SPI_TypeDef *spi, FunctionalState state)
{
    (state) ? CLEAR_BIT(spi->NSSR, SPI_NSSR_NSS) : SET_BIT(spi->NSSR, SPI_NSSR_NSS);
}