19.6.4.9 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 19-56. Parameters
Data directionParameter nameDescription

[in]

module

Pointer to the software instance struct

[in]

baudrate

The baudrate wanted

Returns

The status of the configuration.

Table 19-57. Return Values
Return valueDescription

STATUS_ERR_INVALID_ARG

If invalid argument(s) were provided

STATUS_OK

If the configuration was written