DSPI control functions.
More...
DSPI control functions.
===============================================================================
##### Peripheral State and Errors functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to control the DSPI.
(+) hal_dspi_get_state() API can be helpful to check in run-time the state of the DSPI peripheral.
(+) hal_dspi_get_error() check in run-time Errors occurring during communication.
◆ hal_dspi_config_mode()
Set the DSPI transmission mode.
- Parameters
-
[in] | p_dspi | Pointer to a DSPI handle which contains the configuration information for the specified DSPI module. |
[in] | mode | The DSPI transmission mode. This parameter can be one of the following values:
|
- Return values
-
◆ hal_dspi_get_error()
Return the DSPI error code.
- Parameters
-
[in] | p_dspi | Pointer to a DSPI handle which contains the configuration information for the specified DSPI module. |
- Returns
- DSPI error code in bitmap format
◆ hal_dspi_get_state()
Return the DSPI handle state.
- Parameters
-
[in] | p_dspi | Pointer to a DSPI handle which contains the configuration information for the specified DSPI module. |
- Return values
-
◆ hal_dspi_resume_reg()
Restore some registers related to DSPI configuration after sleep. This function must be used in conjunction with the hal_dspi_suspend_reg().
- Parameters
-
[in] | p_dspi | Pointer to a DSPI handle which contains the configuration information for the specified DSPI module. |
- Return values
-
◆ hal_dspi_set_timeout()
void hal_dspi_set_timeout |
( |
dspi_handle_t * |
p_dspi, |
|
|
uint32_t |
timeout |
|
) |
| |
Set the DSPI internal process timeout value.
- Parameters
-
[in] | p_dspi | Pointer to a DSPI handle which contains the configuration information for the specified DSPI module. |
[in] | timeout | Internal process timeout value. |
- Return values
-
◆ hal_dspi_suspend_reg()
Suspend some registers related to DSPI configuration before sleep.
- Parameters
-
[in] | p_dspi | Pointer to a DSPI handle which contains the configuration information for the specified DSPI module. |
- Return values
-