7 years, 8 months ago.

gpio_read(&gpio) in DigitalOut.h; int gpio_read (gpio_t *obj) in gpio_api.h

Hi all,

I have got a question about the GPIO read function, I can only find out the funtion prototypes in header files: DigitalOut.h, and gpio_api.h respectively.

Does anyone know where do find out the gpio_read() itself? For example, I can write gpio_read (PA_5) to read the status of the GPIO pin PA_5 on the MCU?

Cheers, Daniel L

1 Answer

7 years, 8 months ago.

Hi Daniel,

Hopefully i can help you out here. If you look at the API for digital out, you can then see at line 82 the required call to object:

Import librarymbed

No documentation found.

I hope this helps.

Regards,

Andrea, team mbed