/* Asserting/Deasserting the slave select for the corresponding slave. 
This function will assert or deassert the SS of the requested slave device. */
enum status_code spi_select_slave(struct spi_module *const module, struct spi_slave_inst *const slave, bool select)
/* Asserting/Deasserting the slave select for the corresponding slave. 
This function will assert or deassert the SS of the requested slave device. */
enum status_code spi_select_slave(struct spi_module *const module, struct spi_slave_inst *const slave, bool select)
{
	uint8_t gpio_num = slave->ss_pin;
	if(select) {
		gpio_pin_set_output_level(gpio_num, false);
	} else {
		gpio_pin_set_output_level(gpio_num, true);
	}
	return STATUS_OK;
}