The SPI HAL tests ensure driver conformance to defined behaviour. More...
| Functions | |
| void | fpga_spi_test_init_free (PinName mosi, PinName miso, PinName sclk, PinName ssel) | 
| Test that the spi-Master can be initialized/de-initialized using all possible SPI pins.  More... | |
| void | fpga_spi_test_common (PinName mosi, PinName miso, PinName sclk, PinName ssel) | 
| Test that the SPI-Master transfer can be performed in various configurations (SSEL handled by hardware).  More... | |
| void | fpga_spi_test_common_no_ss (PinName mosi, PinName miso, PinName sclk) | 
| Test that the SPI-Master transfer can be performed in various configurations (SSEL handled manually).  More... | |
The SPI HAL tests ensure driver conformance to defined behaviour.
To run the SPI hal tests use the command:
mbed test -t <toolchain> -m <target> -n tests-mbed_hal_fpga_ci_test_shield-spi
| void fpga_spi_test_common | ( | PinName | mosi, | 
| PinName | miso, | ||
| PinName | sclk, | ||
| PinName | ssel | ||
| ) | 
Test that the SPI-Master transfer can be performed in various configurations (SSEL handled by hardware).
Given board provides SPI-Master support. When SPI transmission is performed using different settings. Then data is successfully transferred.
| void fpga_spi_test_common_no_ss | ( | PinName | mosi, | 
| PinName | miso, | ||
| PinName | sclk | ||
| ) | 
Test that the SPI-Master transfer can be performed in various configurations (SSEL handled manually).
Given board provides SPI-Master support. When SPI transmission is performed using different settings. Then data is successfully transferred.
| void fpga_spi_test_init_free | ( | PinName | mosi, | 
| PinName | miso, | ||
| PinName | sclk, | ||
| PinName | ssel | ||
| ) | 
Test that the spi-Master can be initialized/de-initialized using all possible SPI pins.
Given board provides SPI-Master support. When SPI-Master is initialized (and then de-initialized) using valid set of SPI pins. Then the operation is successfull.