The Analogin HAL tests ensure driver conformance to defined behaviour. More...
Functions | |
| void | fpga_analogin_init_test (PinName pin) |
| Test that the alalogin can be initialized using all possible analogin pins. More... | |
| void | fpga_analogin_test (PinName pin) |
| Test that analogin correctly interprets given input voltage. More... | |
The Analogin HAL tests ensure driver conformance to defined behaviour.
The Analogout HAL tests ensure driver conformance to defined behaviour.
To run the Analogin hal tests use the command:
mbed test -t <toolchain> -m <target> -n tests-mbed_hal_fpga_ci_test_shield-analogin
To run the Analogout hal tests use the command:
mbed test -t <toolchain> -m <target> -n tests-mbed_hal_fpga_ci_test_shield-analogout
| void fpga_analogin_init_test | ( | PinName | pin | ) |
Test that the alalogin can be initialized using all possible analogin pins.
Given board provides analogin support. When analogin is initialized using valid analogin pin. Then the operation is successfull.
| void fpga_analogin_test | ( | PinName | pin | ) |
Test that analogin correctly interprets given input voltage.
Given board provides analogin support. When 0.0/3.3 V is provided to analogin pin. Then analogin_read returns 0.0/1.0, analogin_read_u16 returns 0/65535.