SPI Master Loopback Example Application main file.
More...
|
static uint8_t | tx_data [TX_RX_MSG_LENGTH] |
|
static uint8_t | rx_data [TX_RX_MSG_LENGTH] |
|
This file contains the source code for a sample application using SPI.
Timer Delay in milli-seconds.
- Parameters
-
lsb_first[in] | If true, the least significant bits are transferred first. |
mod_num[in] | spi module to be used, either SPI0 or SPI1 from enumeration SPIModuleNumber. |
- Return values
-
- Note
- If debug is enabled DEBUG, then this function will configure DEBUG_EVENT_READY_PIN to toggle (using GPIOTE) everytime READY_EVENTS are generated in the SPI
-
This flag will configure GPIOTE CONFIG0 and PPI channel 0, do not enable DEBUG while using two spi modules in parallel
Test with shift Lsb first mode 0.
Delay for the events ready signal to be visually seen DEBUG flag is enabled.
test with shift Lsb first mode 0
Delay for the events ready signal to be visually seen DEBUG flag is enabled.
uint8_t tx_data[TX_RX_MSG_LENGTH] |
|
static |
uint8_t rx_data[TX_RX_MSG_LENGTH] |
|
static |