Mistake on this page?
Report an issue in GitHub or email us
Functions

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...
 

Detailed Description

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

Function Documentation

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.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.