Functions | |
uint16_t | app_dspi_init (app_dspi_params_t *p_params, app_dspi_evt_handler_t evt_handler) |
Initialize the APP DSPI DRIVER according to the specified parameters in the app_dspi_params_t and app_dspi_evt_handler_t. More... | |
uint16_t | app_dspi_deinit (void) |
De-initialize the APP DSPI DRIVER peripheral. More... | |
uint16_t | app_dspi_command_transmit_sync (app_dspi_command_t *p_cmd, uint8_t *p_data, uint32_t timeout) |
Receive an amount of data with the specified instruction in blocking mode. More... | |
uint16_t | app_dspi_command_transmit_async (app_dspi_command_t *p_cmd, uint8_t *p_data) |
Receive an amount of data with the specified instruction in non-blocking mode with Interrupt. More... | |
uint16_t | app_dspi_command_sync (app_dspi_command_t *p_cmd, uint32_t timeout) |
Transmit only instruction in blocking mode. More... | |
uint16_t | app_dspi_command_async (app_dspi_command_t *p_cmd) |
Transmit instruction in non-blocking mode with Interrupt. More... | |
uint16_t | app_dspi_transmit_sync (uint8_t *p_data, uint32_t length, uint32_t timeout) |
Transmit an amount of data in blocking mode. More... | |
uint16_t | app_dspi_transmit_async (uint8_t *p_data, uint32_t length) |
Transmit an amount of data in non-blocking mode with Interrupt. More... | |
dspi_handle_t * | app_dspi_get_handle (void) |
Return the DSPI handle. More... | |
uint16_t | app_dspi_config_mode (uint32_t mode) |
Set the DSPI transmission mode. More... | |
uint16_t | app_dspi_config_data_size (uint32_t data_size) |
Set the DSPI transmission data size. More... | |
uint16_t | app_dspi_abort (void) |
Abort the current transmission. More... | |
uint16_t | app_dspi_abort_it (void) |
Abort the current transmission (non-blocking function) More... | |
uint16_t | app_dspi_dma_init (app_dspi_params_t *p_params) |
Initialize the APP DSPI DRIVER according to the specified parameters in the app_dspi_params_t and app_dspi_evt_handler_t. More... | |
uint16_t | app_dspi_dma_deinit (void) |
De-initialize the APP DSPI DRIVER peripheral. More... | |
uint16_t | app_dspi_dma_command_transmit_async (app_dspi_command_t *p_cmd, uint8_t *p_data) |
Receive an amount of data with the specified instruction in non-blocking mode with Interrupt. More... | |
uint16_t | app_dspi_dma_command_async (app_dspi_command_t *p_cmd) |
Transmit instruction in non-blocking mode with Interrupt. More... | |
uint16_t | app_dspi_dma_transmit_async (uint8_t *p_data, uint32_t length) |
Transmit an amount of data in non-blocking mode with DMA. More... | |
uint16_t | app_dspi_dma_sg_llp_transmit_async (uint8_t *p_data, uint32_t length, dma_sg_llp_config_t *sg_llp_config) |
Transmit an amount of data in non-blocking mode with DMA SG or LLP. More... | |
uint16_t app_dspi_abort | ( | void | ) |
Abort the current transmission.
uint16_t app_dspi_abort_it | ( | void | ) |
Abort the current transmission (non-blocking function)
uint16_t app_dspi_command_async | ( | app_dspi_command_t * | p_cmd | ) |
Transmit instruction in non-blocking mode with Interrupt.
[in] | p_cmd | Pointer to a app_dspi_command_t structure that contains the instruction for data transfer. |
uint16_t app_dspi_command_sync | ( | app_dspi_command_t * | p_cmd, |
uint32_t | timeout | ||
) |
Transmit only instruction in blocking mode.
[in] | p_cmd | Pointer to a app_dspi_command_t structure that contains the instruction for data transfer. |
[in] | timeout | Timeout duration |
uint16_t app_dspi_command_transmit_async | ( | app_dspi_command_t * | p_cmd, |
uint8_t * | p_data | ||
) |
Receive an amount of data with the specified instruction in non-blocking mode with Interrupt.
[in] | p_cmd | Pointer to a app_dspi_command_t structure that contains the instruction, length, data_size for data transfer. |
[out] | p_data | Pointer to data buffer |
uint16_t app_dspi_command_transmit_sync | ( | app_dspi_command_t * | p_cmd, |
uint8_t * | p_data, | ||
uint32_t | timeout | ||
) |
Receive an amount of data with the specified instruction in blocking mode.
[in] | p_cmd | Pointer to a app_dspi_command_t structure that contains the instruction, length, data_size for data transfer. |
[out] | p_data | Pointer to data buffer |
[in] | timeout | Timeout duration |
uint16_t app_dspi_config_data_size | ( | uint32_t | data_size | ) |
Set the DSPI transmission data size.
uint16_t app_dspi_config_mode | ( | uint32_t | mode | ) |
Set the DSPI transmission mode.
[in] | mode | the DSPI transmission mode.This parameter can be one of the following values: |
uint16_t app_dspi_deinit | ( | void | ) |
De-initialize the APP DSPI DRIVER peripheral.
uint16_t app_dspi_dma_command_async | ( | app_dspi_command_t * | p_cmd | ) |
Transmit instruction in non-blocking mode with Interrupt.
[in] | p_cmd | Pointer to a app_dspi_command_t structure that contains the instruction for data transfer. |
uint16_t app_dspi_dma_command_transmit_async | ( | app_dspi_command_t * | p_cmd, |
uint8_t * | p_data | ||
) |
Receive an amount of data with the specified instruction in non-blocking mode with Interrupt.
[in] | p_cmd | Pointer to a app_dspi_command_t structure that contains the instruction, length, data_size for data transfer. |
[out] | p_data | Pointer to data buffer |
uint16_t app_dspi_dma_deinit | ( | void | ) |
De-initialize the APP DSPI DRIVER peripheral.
uint16_t app_dspi_dma_init | ( | app_dspi_params_t * | p_params | ) |
Initialize the APP DSPI DRIVER according to the specified parameters in the app_dspi_params_t and app_dspi_evt_handler_t.
[in] | p_params | Pointer to app_dspi_params_t parameter which contains the configuration information for the specified DSPI module. |
uint16_t app_dspi_dma_sg_llp_transmit_async | ( | uint8_t * | p_data, |
uint32_t | length, | ||
dma_sg_llp_config_t * | sg_llp_config | ||
) |
Transmit an amount of data in non-blocking mode with DMA SG or LLP.
[in] | p_data | Pointer to data buffer |
[in] | length | Amount of data to be sent in bytes, ranging between 0 and 4095. |
[in] | sg_llp_config | The config of source and destination's SG and LLP. |
uint16_t app_dspi_dma_transmit_async | ( | uint8_t * | p_data, |
uint32_t | length | ||
) |
Transmit an amount of data in non-blocking mode with DMA.
[in] | p_data | Pointer to data buffer |
[in] | length | Amount of data to be sent in bytes, ranging between 0 and 4095. |
dspi_handle_t* app_dspi_get_handle | ( | void | ) |
Return the DSPI handle.
uint16_t app_dspi_init | ( | app_dspi_params_t * | p_params, |
app_dspi_evt_handler_t | evt_handler | ||
) |
Initialize the APP DSPI DRIVER according to the specified parameters in the app_dspi_params_t and app_dspi_evt_handler_t.
[in] | p_params | Pointer to app_dspi_params_t parameter which contains the configuration information for the specified DSPI module. |
[in] | evt_handler | DSPI user callback function. |
uint16_t app_dspi_transmit_async | ( | uint8_t * | p_data, |
uint32_t | length | ||
) |
Transmit an amount of data in non-blocking mode with Interrupt.
[in] | p_data | Pointer to data buffer |
[in] | length | Amount of data to be sent in bytes |
uint16_t app_dspi_transmit_sync | ( | uint8_t * | p_data, |
uint32_t | length, | ||
uint32_t | timeout | ||
) |
Transmit an amount of data in blocking mode.
[in] | p_data | Pointer to data buffer |
[in] | length | Amount of data to be sent in bytes |
[in] | timeout | Timeout duration |