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.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in] |
module |
Pointer to the software instance struct |
|
[in] |
baudrate |
The baudrate wanted |
Returns
The status of the configuration.
| Return value | Description |
|---|---|
|
STATUS_ERR_INVALID_ARG |
If invalid argument(s) were provided |
|
STATUS_OK |
If the configuration was written |
