Skip to main content

MSS_SPI_disable

Function MSS_SPI_disable 

Source
pub unsafe extern "C" fn MSS_SPI_disable(
    this_spi: *mut mss_spi_instance_t,
)
Expand description

MSS_SPI_disable() temporarily disables a MSS SPI hardware block.

@param this_spi this_spi is a pointer to an mss_spi_instance_t structure that identifies the MSS SPI hardware block to be operated.

@return This function does not return any value.

@example @code uint32_t transfer_size; uint8_t tx_buffer[8] = {1, 2, 3, 4, 5, 6, 7, 8};

transfer_size = sizeof(tx_buffer);

MSS_SPI_disable(&g_mss_spi0_lo); MSS_SPI_set_transfer_byte_count(&g_mss_spi0_lo, transfer_size); @endcode