Function spi_set_baudrate()

Set the baudrate of the SPI module.

enum status_code spi_set_baudrate(
		struct spi_module *const module,
		uint32_t baudrate)

This function will set the baudrate of the SPI module.

Table 1. Parameters
Data direction Parameter name Description

[in]

module

Pointer to the software instance struct

[in]

baudrate

The baudrate wanted

Returns

The status of the configuration.

Table 2. Return Values
Return value Description

STATUS_ERR_INVALID_ARG

If invalid argument(s) were provided

STATUS_OK

If the configuration was written