spi_get_config — gets current config.
#include <spi.h>
spi_config_t spi_get_config (
)
void
no arguments
Gets and returns the current configuration, which can be easily restored back using spi_set_config.
spi_set_config