Functions | |
| uint16_t | app_spi_init (app_spi_params_t *p_params, app_spi_evt_handler_t evt_handler) |
| Initialize the APP SPI DRIVER according to the specified parameters in the app_spi_params_t and app_spi_evt_handler_t. More... | |
| uint16_t | app_spi_deinit (app_spi_id_t id) |
| De-initialize the APP SPI DRIVER peripheral. More... | |
| uint16_t | app_spi_receive_sync (app_spi_id_t id, uint8_t *p_data, uint16_t size, uint32_t timeout) |
| Receive in master or slave mode an amount of data in blocking mode. More... | |
| uint16_t | app_spi_receive_async (app_spi_id_t id, uint8_t *p_data, uint16_t size) |
| Receive in master or slave mode an amount of data in non-blocking mode with Interrupt. More... | |
| uint16_t | app_spi_transmit_sync (app_spi_id_t id, uint8_t *p_data, uint16_t size, uint32_t timeout) |
| Transmits in master or slave mode an amount of data in blocking mode. More... | |
| uint16_t | app_spi_transmit_async (app_spi_id_t id, uint8_t *p_data, uint16_t size) |
| Transmits in master or slave mode an amount of data in non-blocking mode with Interrupt. More... | |
| uint16_t | app_spi_transmit_receive_sync (app_spi_id_t id, uint8_t *p_tx_data, uint8_t *p_rx_data, uint32_t size, uint32_t timeout) |
| Transmits and receive in master or slave mode an amount of data in blocking mode. More... | |
| uint16_t | app_spi_transmit_receive_async (app_spi_id_t id, uint8_t *p_tx_data, uint8_t *p_rx_data, uint32_t size) |
| Transmits and receive in master or slave mode an amount of data in non-blocking mode with Interrupt. More... | |
| uint16_t | app_spi_read_eeprom_sync (app_spi_id_t id, uint8_t *p_tx_data, uint8_t *p_rx_data, uint32_t tx_size, uint32_t rx_size, uint32_t timeout) |
| Read an amount of data from EEPROM in blocking mode. More... | |
| uint16_t | app_spi_read_eeprom_async (app_spi_id_t id, uint8_t *p_tx_data, uint8_t *p_rx_data, uint32_t tx_size, uint32_t rx_size) |
| Read an amount of data from EEPROM in non-blocking mode with Interrupt. More... | |
| uint16_t | app_spi_write_memory_async (app_spi_id_t id, uint8_t *p_cmd_data, uint8_t *p_tx_data, uint32_t cmd_size, uint32_t tx_size) |
| Transmits in master or slave mode an amount of data in non-blocking mode with DMA. More... | |
| uint16_t | app_spi_read_memory_async (app_spi_id_t id, uint8_t *p_cmd_data, uint8_t *p_rx_data, uint32_t cmd_size, uint32_t rx_size) |
| Read an amount of data from EEPROM in non-blocking mode with DMA. More... | |
| spi_handle_t * | app_spi_get_handle (app_spi_id_t id) |
| Return the SPI handle. More... | |
| uint16_t | app_spi_receive_high_speed_sync (app_spi_id_t id, uint8_t *p_data, uint16_t size) |
| [High speed] Receive in master or slave mode an amount of data in blocking mode. More... | |
| uint16_t | app_spi_transmit_high_speed_sync (app_spi_id_t id, uint8_t *p_data, uint16_t size) |
| [High speed] Transmit in master or slave mode an amount of data in blocking mode. More... | |
| uint16_t | app_spi_v2_init (app_spi_params_t *p_params, app_spi_evt_handler_t evt_handler) |
| Initialize the APP SPI DRIVER according to the specified parameters in the app_spi_params_t and app_spi_evt_handler_t. More... | |
| uint16_t | app_spi_v2_deinit (app_spi_id_t id) |
| De-initialize the APP SPI DRIVER peripheral. More... | |
| uint16_t | app_spi_v2_transmit_poll_sync (app_spi_id_t id, app_spi_datawidth_t data_width, uint8_t *p_data, uint16_t size, uint32_t timeout) |
| Transmits in master or slave mode an amount of data in blocking mode, without inst & addr. More... | |
| uint16_t | app_spi_v2_transmit_with_ia_poll_sync (app_spi_id_t id, app_spi_datawidth_t data_width, uint8_t inst, uint32_t addr, uint8_t *p_data, uint16_t size, uint32_t timeout) |
| Transmits an amount of data in blocking mode in master mode , with inst & addr. More... | |
| uint16_t | app_spi_v2_receive_poll_sync (app_spi_id_t id, app_spi_datawidth_t data_width, uint8_t *p_data, uint16_t size, uint32_t timeout) |
| Receive in master or slave mode an amount of data in blocking mode , without inst & addr. More... | |
| uint16_t | app_spi_v2_receive_with_ia_poll_sync (app_spi_id_t id, app_spi_datawidth_t data_width, uint8_t inst, uint32_t addr, uint8_t *p_data, uint16_t size, uint32_t timeout) |
| Receivean amount of data in blocking mode in master mode with instruction and address . More... | |
| uint16_t | app_spi_v2_transmit_receive_8bit_poll_sync (app_spi_id_t id, uint8_t *tx_data, uint16_t tx_size, uint8_t *rx_data, uint16_t rx_size, uint32_t timeout) |
| Transmits then Receive an amount of data in blocking mode in master mode . More... | |
| uint16_t | app_spi_v2_transmit_dma_sync (app_spi_id_t id, app_spi_datawidth_t data_width, uint8_t *p_data, uint16_t size) |
| Transmits in master mode an amount of data in dma mode, without inst & addr. More... | |
| uint16_t | app_spi_v2_transmit_with_ia_dma_sync (app_spi_id_t id, app_spi_datawidth_t data_width, uint8_t inst, uint32_t addr, uint8_t *p_data, uint16_t size) |
| Transmits in master mode an amount of data in dma mode, with inst & addr. More... | |
| uint16_t | app_spi_v2_receive_dma_sync (app_spi_id_t id, app_spi_datawidth_t data_width, uint8_t *p_data, uint16_t size) |
| Receive in master mode an amount of data in dma mode, without inst & addr. More... | |
| uint16_t | app_spi_v2_receive_with_ia_dma_sync (app_spi_id_t id, app_spi_datawidth_t data_width, uint8_t inst, uint32_t addr, uint8_t *p_data, uint16_t size) |
| spi_handle_t * | app_spi_v2_get_handle (app_spi_id_t id) |
| Return the SPI handle. More... | |
| uint16_t app_spi_deinit | ( | app_spi_id_t | id | ) |
De-initialize the APP SPI DRIVER peripheral.
| [in] | id | De-initialize for a specific ID. |
| spi_handle_t* app_spi_get_handle | ( | app_spi_id_t | id | ) |
Return the SPI handle.
| [in] | id | SPI Channel ID. |
| uint16_t app_spi_init | ( | app_spi_params_t * | p_params, |
| app_spi_evt_handler_t | evt_handler | ||
| ) |
Initialize the APP SPI DRIVER according to the specified parameters in the app_spi_params_t and app_spi_evt_handler_t.
| [in] | p_params | Pointer to app_spi_params_t parameter which contains the configuration information for the specified SPI module. |
| [in] | evt_handler | SPI user callback function. |
| uint16_t app_spi_read_eeprom_async | ( | app_spi_id_t | id, |
| uint8_t * | p_tx_data, | ||
| uint8_t * | p_rx_data, | ||
| uint32_t | tx_size, | ||
| uint32_t | rx_size | ||
| ) |
Read an amount of data from EEPROM in non-blocking mode with Interrupt.
| [in] | id | which SPI module want to transmit. |
| [in] | p_tx_data | Pointer to transmission data buffer |
| [out] | p_rx_data | Pointer to reception data buffer |
| [in] | tx_size | Amount of data to be sent in bytes |
| [in] | rx_size | Amount of data to be received in bytes |
| uint16_t app_spi_read_eeprom_sync | ( | app_spi_id_t | id, |
| uint8_t * | p_tx_data, | ||
| uint8_t * | p_rx_data, | ||
| uint32_t | tx_size, | ||
| uint32_t | rx_size, | ||
| uint32_t | timeout | ||
| ) |
Read an amount of data from EEPROM in blocking mode.
| [in] | id | which SPI module want to transmit. |
| [in] | p_tx_data | Pointer to transmission data buffer |
| [out] | p_rx_data | Pointer to reception data buffer |
| [in] | tx_size | Amount of data to be sent in bytes |
| [in] | rx_size | Amount of data to be received in bytes |
| [in] | timeout | Timeout duration |
| uint16_t app_spi_read_memory_async | ( | app_spi_id_t | id, |
| uint8_t * | p_cmd_data, | ||
| uint8_t * | p_rx_data, | ||
| uint32_t | cmd_size, | ||
| uint32_t | rx_size | ||
| ) |
Read an amount of data from EEPROM in non-blocking mode with DMA.
| [in] | id | which SPI module want to transmit. |
| [in] | p_cmd_data | Pointer to command data buffer |
| [out] | p_rx_data | Pointer to reception data buffer |
| [in] | cmd_size | Amount of command data to be sent in bytes |
| [in] | rx_size | Amount of data to be received in bytes |
| uint16_t app_spi_receive_async | ( | app_spi_id_t | id, |
| uint8_t * | p_data, | ||
| uint16_t | size | ||
| ) |
Receive in master or slave mode an amount of data in non-blocking mode with Interrupt.
| [in] | id | which SPI module want to receive. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| uint16_t app_spi_receive_high_speed_sync | ( | app_spi_id_t | id, |
| uint8_t * | p_data, | ||
| uint16_t | size | ||
| ) |
[High speed] Receive in master or slave mode an amount of data in blocking mode.
| [in] | id | which SPI module want to receive. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| uint16_t app_spi_receive_sync | ( | app_spi_id_t | id, |
| uint8_t * | p_data, | ||
| uint16_t | size, | ||
| uint32_t | timeout | ||
| ) |
Receive in master or slave mode an amount of data in blocking mode.
| [in] | id | which SPI module want to receive. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| [in] | timeout | Timeout duration |
| uint16_t app_spi_transmit_async | ( | app_spi_id_t | id, |
| uint8_t * | p_data, | ||
| uint16_t | size | ||
| ) |
Transmits in master or slave mode an amount of data in non-blocking mode with Interrupt.
| [in] | id | which SPI module want to transmit. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| uint16_t app_spi_transmit_high_speed_sync | ( | app_spi_id_t | id, |
| uint8_t * | p_data, | ||
| uint16_t | size | ||
| ) |
[High speed] Transmit in master or slave mode an amount of data in blocking mode.
| [in] | id | which SPI module want to receive. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| uint16_t app_spi_transmit_receive_async | ( | app_spi_id_t | id, |
| uint8_t * | p_tx_data, | ||
| uint8_t * | p_rx_data, | ||
| uint32_t | size | ||
| ) |
Transmits and receive in master or slave mode an amount of data in non-blocking mode with Interrupt.
| [in] | id | which SPI module want to transmit. |
| [in] | p_tx_data | Pointer to tx data buffer |
| [in] | p_rx_data | Pointer to rx data buffer |
| [in] | size | Amount of data to be sent and receive |
| uint16_t app_spi_transmit_receive_sync | ( | app_spi_id_t | id, |
| uint8_t * | p_tx_data, | ||
| uint8_t * | p_rx_data, | ||
| uint32_t | size, | ||
| uint32_t | timeout | ||
| ) |
Transmits and receive in master or slave mode an amount of data in blocking mode.
| [in] | id | which SPI module want to transmit. |
| [in] | p_tx_data | Pointer to tx data buffer |
| [in] | p_rx_data | Pointer to rx data buffer |
| [in] | size | Amount of data to be sent and receive |
| [in] | timeout | Timeout duration |
| uint16_t app_spi_transmit_sync | ( | app_spi_id_t | id, |
| uint8_t * | p_data, | ||
| uint16_t | size, | ||
| uint32_t | timeout | ||
| ) |
Transmits in master or slave mode an amount of data in blocking mode.
| [in] | id | which SPI module want to transmit. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| [in] | timeout | Timeout duration |
| uint16_t app_spi_v2_deinit | ( | app_spi_id_t | id | ) |
De-initialize the APP SPI DRIVER peripheral.
| [in] | id | De-initialize for a specific ID. |
| spi_handle_t* app_spi_v2_get_handle | ( | app_spi_id_t | id | ) |
Return the SPI handle.
| [in] | id | SPI Channel ID. |
| uint16_t app_spi_v2_init | ( | app_spi_params_t * | p_params, |
| app_spi_evt_handler_t | evt_handler | ||
| ) |
Initialize the APP SPI DRIVER according to the specified parameters in the app_spi_params_t and app_spi_evt_handler_t.
| [in] | p_params | Pointer to app_spi_params_t parameter which contains the configuration information for the specified SPI module. |
| [in] | evt_handler | SPI user callback function. |
| uint16_t app_spi_v2_receive_dma_sync | ( | app_spi_id_t | id, |
| app_spi_datawidth_t | data_width, | ||
| uint8_t * | p_data, | ||
| uint16_t | size | ||
| ) |
Receive in master mode an amount of data in dma mode, without inst & addr.
| [in] | id | which SPI module want to receive. |
| [in] | data_width | : data receive width in SPI FIFO , supports 8bit / 32bit |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| uint16_t app_spi_v2_receive_poll_sync | ( | app_spi_id_t | id, |
| app_spi_datawidth_t | data_width, | ||
| uint8_t * | p_data, | ||
| uint16_t | size, | ||
| uint32_t | timeout | ||
| ) |
Receive in master or slave mode an amount of data in blocking mode , without inst & addr.
| [in] | id | which SPI module want to receive. |
| [in] | data_width | : data receive width in SPI FIFO , supports 8bit / 32bit |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| [in] | timeout | Timeout duration |
| uint16_t app_spi_v2_receive_with_ia_dma_sync | ( | app_spi_id_t | id, |
| app_spi_datawidth_t | data_width, | ||
| uint8_t | inst, | ||
| uint32_t | addr, | ||
| uint8_t * | p_data, | ||
| uint16_t | size | ||
| ) |
Receive in master mode an amount of data in dma mode, with inst & addr.
| [in] | id | which SPI module want to receive. |
| [in] | data_width | : data receive width in SPI FIFO , supports 8bit / 32bit |
| [in] | inst | instruction which just supports 8bit. |
| [in] | addr | address which just supports 24bit. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| uint16_t app_spi_v2_receive_with_ia_poll_sync | ( | app_spi_id_t | id, |
| app_spi_datawidth_t | data_width, | ||
| uint8_t | inst, | ||
| uint32_t | addr, | ||
| uint8_t * | p_data, | ||
| uint16_t | size, | ||
| uint32_t | timeout | ||
| ) |
Receivean amount of data in blocking mode in master mode with instruction and address .
| [in] | id | which SPI module want to receive. |
| [in] | data_width | data receive width in SPI FIFO , supports 8bit / 32bit |
| [in] | inst | instruction which just supports 8bit. |
| [in] | addr | address which just supports 24bit. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| [in] | timeout | Timeout duration |
| uint16_t app_spi_v2_transmit_dma_sync | ( | app_spi_id_t | id, |
| app_spi_datawidth_t | data_width, | ||
| uint8_t * | p_data, | ||
| uint16_t | size | ||
| ) |
Transmits in master mode an amount of data in dma mode, without inst & addr.
| [in] | id | which SPI module want to transmit. |
| [in] | data_width | data sent width in SPI FIFO , supports 8bit / 32bit |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| uint16_t app_spi_v2_transmit_poll_sync | ( | app_spi_id_t | id, |
| app_spi_datawidth_t | data_width, | ||
| uint8_t * | p_data, | ||
| uint16_t | size, | ||
| uint32_t | timeout | ||
| ) |
Transmits in master or slave mode an amount of data in blocking mode, without inst & addr.
| [in] | id | which SPI module want to transmit. |
| [in] | data_width | : data sent width in SPI FIFO , supports 8bit / 32bit |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| [in] | timeout | Timeout duration |
| uint16_t app_spi_v2_transmit_receive_8bit_poll_sync | ( | app_spi_id_t | id, |
| uint8_t * | tx_data, | ||
| uint16_t | tx_size, | ||
| uint8_t * | rx_data, | ||
| uint16_t | rx_size, | ||
| uint32_t | timeout | ||
| ) |
Transmits then Receive an amount of data in blocking mode in master mode .
| [in] | id | which SPI module want to transmit. |
| [in] | tx_data | transmit data. |
| [in] | tx_size | transmit data size. |
| [in] | rx_data | receive data. |
| [in] | rx_size | receive data size. |
| [in] | timeout | Timeout duration |
| uint16_t app_spi_v2_transmit_with_ia_dma_sync | ( | app_spi_id_t | id, |
| app_spi_datawidth_t | data_width, | ||
| uint8_t | inst, | ||
| uint32_t | addr, | ||
| uint8_t * | p_data, | ||
| uint16_t | size | ||
| ) |
Transmits in master mode an amount of data in dma mode, with inst & addr.
| [in] | id | which SPI module want to transmit. |
| [in] | data_width | : data sent width in SPI FIFO , supports 8bit / 32bit |
| [in] | inst | instruction which just supports 8bit. |
| [in] | addr | address which just supports 24bit. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| uint16_t app_spi_v2_transmit_with_ia_poll_sync | ( | app_spi_id_t | id, |
| app_spi_datawidth_t | data_width, | ||
| uint8_t | inst, | ||
| uint32_t | addr, | ||
| uint8_t * | p_data, | ||
| uint16_t | size, | ||
| uint32_t | timeout | ||
| ) |
Transmits an amount of data in blocking mode in master mode , with inst & addr.
| [in] | id | which SPI module want to transmit. |
| [in] | data_width | : data sent width in SPI FIFO , supports 8bit / 32bit |
| [in] | inst | instruction which just supports 8bit. |
| [in] | addr | address which just supports 24bit. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| [in] | timeout | Timeout duration |
| uint16_t app_spi_write_memory_async | ( | app_spi_id_t | id, |
| uint8_t * | p_cmd_data, | ||
| uint8_t * | p_tx_data, | ||
| uint32_t | cmd_size, | ||
| uint32_t | tx_size | ||
| ) |
Transmits in master or slave mode an amount of data in non-blocking mode with DMA.
| [in] | id | which SPI module want to transmit. |
| [in] | p_cmd_data | Pointer to command data buffer |
| [in] | p_tx_data | Pointer to transmission data buffer |
| [in] | cmd_size | Amount of command data to be sent in bytes |
| [in] | tx_size | Amount of data to be sent in bytes |