> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfigpio.md).

# vfigpio

[Data Structures](#nested-classes) | [Enumerations](#enum-members)

|                 |                                                                                                              |
| --------------- | ------------------------------------------------------------------------------------------------------------ |
| Data Structures |                                                                                                              |
| class           | [GPIO](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfigpio_1_1_g_p_i_o.md) |

|              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enumerations |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| enum         | <p><a href="#a82298b40693099f7037dfb35e43421fc">GPIO\_Error</a> {<br>  <a href="#a82298b40693099f7037dfb35e43421fcad1d2bc56bbb2fda8a9e87c2792a001a3">GPIOE\_OK</a> =0x00, <a href="#a82298b40693099f7037dfb35e43421fca9a0fff97658d5437e0ade182218b3dc6">GPIOE\_NOT\_CONNECTED</a> =0x01, <a href="#a82298b40693099f7037dfb35e43421fca0b78659dfdf33d66ab486f1725fe50b9">GPIOE\_IO\_ERROR</a> =0x02, <a href="#a82298b40693099f7037dfb35e43421fca2039805ae0ec19c8ca4773ef7835e19d">GPIOE\_PROTOCOL</a> =0x03,<br>  <a href="#a82298b40693099f7037dfb35e43421fcaa777bf1fb0263534fa5961f5760f4476">GPIOE\_INVALID\_TLV</a> =0x04, <a href="#a82298b40693099f7037dfb35e43421fcaece1e86def9123a79b3dfb0956b7df80">GPIOE\_RESET</a> =0x05, <a href="#a82298b40693099f7037dfb35e43421fca156413149653ced55dab67523dbd07a0">GPIOE\_ERROR</a> =0x10, <a href="#a82298b40693099f7037dfb35e43421fca0363e619742e34b35ae49565e1481d5e">GPIOE\_MESSAGE\_TOO\_LARGE</a> =0x11,<br>  <a href="#a82298b40693099f7037dfb35e43421fca96105236be03a93092b7fc69dde7e219">GPIOE\_INVALID\_COMMAND</a> =0x12, <a href="#a82298b40693099f7037dfb35e43421fca776288188104012c9c0ad3d2d4c100fb">GPIOE\_INVALID\_PARAM</a> =0x13, <a href="#a82298b40693099f7037dfb35e43421fca111bd43de23a5e05a6b713333e3cc3b3">GPIOE\_CANCELLED</a> =0x14, <a href="#a82298b40693099f7037dfb35e43421fca8a5a3579ce3f66d377d714bedf95dce8">GPIOE\_NO\_RESOURCE</a> =0x15,<br>  <a href="#a82298b40693099f7037dfb35e43421fcaaa859eee4a4218d528fc06057e72e044">GPIOE\_BUSY</a> =0x1A, <a href="#a82298b40693099f7037dfb35e43421fca7cf4dc48d38ce884e0949fc46f86bada">GPIOE\_INVALID\_SEQUENCE</a> =0x1C, <a href="#a82298b40693099f7037dfb35e43421fca9c680e72a566914797a11b0b43bad8bf">GPIOE\_TIMEOUT</a> =0x1D, <a href="#a82298b40693099f7037dfb35e43421fca90f89198a353919e4d1edc7ff630d58a">GPIOE\_NOT\_FOUND</a> =0x1F,<br>  <a href="#a82298b40693099f7037dfb35e43421fcac6d54a9200a53f1b5e9aef73128f3ba2">GPIOE\_EVENT\_GPIO\_1</a> =0x8005, <a href="#a82298b40693099f7037dfb35e43421fca27b114b58623bc53ef940676ea18e30f">GPIOE\_EVENT\_GPIO\_2</a> =0x8006, <a href="#a82298b40693099f7037dfb35e43421fcaae58822ee356353b59aab1dd090325c1">GPIOE\_EVENT\_GPIO\_3</a> =0x8007, <a href="#a82298b40693099f7037dfb35e43421fcad291b8797e1c397b507116dcfa9b9e53">GPIOE\_EVENT\_GPIO\_4</a> =0x8008<br>}</p> |
| enum         | [GPIO\_Config](#a75176d13bc1b8120b223fd035ee5c15c) { [GPIO\_OUTPUT](#a75176d13bc1b8120b223fd035ee5c15caa248e73c1faee9c6f072fd91569cf516) =1, [GPIO\_DEBOUNCE](#a75176d13bc1b8120b223fd035ee5c15ca3bc241a9e609c6dadfdeddbf5a44032f) =2 }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| enum         | [GPIO\_EventMask](#a4ad55a6c1ca89921b14a6664d2066655) { [GPIO\_EVENT\_GPIO\_1](#a4ad55a6c1ca89921b14a6664d2066655a68b18a10e6e4695ab8a4e3f47a8f462a) =0x0010, [GPIO\_EVENT\_GPIO\_2](#a4ad55a6c1ca89921b14a6664d2066655a6707be73d446886cf4a94ef43b2e3da5) =0x0020, [GPIO\_EVENT\_GPIO\_3](#a4ad55a6c1ca89921b14a6664d2066655ae235eac53db9ed6ddbba00189082564c) =0x0040, [GPIO\_EVENT\_GPIO\_4](#a4ad55a6c1ca89921b14a6664d2066655aed79c2c55774b45a78723ea6fb6b9d69) =0x0080 }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |

### EnumerationType Documentation <a href="#enumeration-type-documentation" id="enumeration-type-documentation"></a>

### GPIO\_Config <a href="#a75176d13bc1b8120b223fd035ee5c15c" id="a75176d13bc1b8120b223fd035ee5c15c"></a>

enum \[GPIO\_Config]\(#a75176d13bc1b8120b223fd035ee5c15c)

[GPIO](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfigpio_1_1_g_p_i_o.md) configuration flags

|                |                                                                                                                                                      |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enumerator     |                                                                                                                                                      |
| GPIO\_OUTPUT   | Switch [GPIO](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfigpio_1_1_g_p_i_o.md) to output mode, default is input |
| GPIO\_DEBOUNCE | Activate debouncing in input mode                                                                                                                    |

### GPIO\_Error <a href="#a82298b40693099f7037dfb35e43421fc" id="a82298b40693099f7037dfb35e43421fc"></a>

enum \[GPIO\_Error]\(#a82298b40693099f7037dfb35e43421fc)

[GPIO](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfigpio_1_1_g_p_i_o.md) error codes

|                            |                                                                 |
| -------------------------- | --------------------------------------------------------------- |
| Enumerator                 |                                                                 |
| GPIOE\_OK                  | no error                                                        |
| GPIOE\_NOT\_CONNECTED      | not connected                                                   |
| GPIOE\_IO\_ERROR           | I/O error                                                       |
| GPIOE\_PROTOCOL            | invalid message received                                        |
| GPIOE\_INVALID\_TLV        | invalid TLV data format received                                |
| GPIOE\_RESET               | the command was cancelled due to resetting the secure processor |
| GPIOE\_ERROR               | Generic error                                                   |
| GPIOE\_MESSAGE\_TOO\_LARGE | Message was too large                                           |
| GPIOE\_INVALID\_COMMAND    | Invalid command was sent                                        |
| GPIOE\_INVALID\_PARAM      | Invalid parameters                                              |
| GPIOE\_CANCELLED           | command has been cancelled by break                             |
| GPIOE\_NO\_RESOURCE        | no resource                                                     |
| GPIOE\_BUSY                | operation cannot be performed now, retry later                  |
| GPIOE\_INVALID\_SEQUENCE   | The command is not allowed in the current state                 |
| GPIOE\_TIMEOUT             | timeout                                                         |
| GPIOE\_NOT\_FOUND          | the item/resource/etc was not found                             |
| GPIOE\_EVENT\_GPIO\_1      | gpio change event                                               |
| GPIOE\_EVENT\_GPIO\_2      | gpio change event                                               |
| GPIOE\_EVENT\_GPIO\_3      | gpio change event                                               |
| GPIOE\_EVENT\_GPIO\_4      | gpio change event                                               |

### GPIO\_EventMask <a href="#a4ad55a6c1ca89921b14a6664d2066655" id="a4ad55a6c1ca89921b14a6664d2066655"></a>

enum \[GPIO\_EventMask]\(#a4ad55a6c1ca89921b14a6664d2066655)

event mask

|                      |                                                                                                                                                                                       |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enumerator           |                                                                                                                                                                                       |
| GPIO\_EVENT\_GPIO\_1 | gpio change event: SPE\_EVENT\_GPIO\_1, value contains the current [GPIO](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfigpio_1_1_g_p_i_o.md) value |
| GPIO\_EVENT\_GPIO\_2 | gpio change event: SPE\_EVENT\_GPIO\_2, value contains the current [GPIO](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfigpio_1_1_g_p_i_o.md) value |
| GPIO\_EVENT\_GPIO\_3 | gpio change event: SPE\_EVENT\_GPIO\_3, value contains the current [GPIO](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfigpio_1_1_g_p_i_o.md) value |
| GPIO\_EVENT\_GPIO\_4 | gpio change event: SPE\_EVENT\_GPIO\_4, value contains the current [GPIO](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfigpio_1_1_g_p_i_o.md) value |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfigpio.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
