> 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/annotated/class_key_pad.md).

# KeyPad

[Public Types](#pub-types) | [Public Member Functions](#pub-methods) | [Static Public Member Functions](#pub-static-methods)

`#include <`[keypad.h](/s-adk-5.1-programmers-guide/keypad_8h_source.md)`>`

|                 |                                                                                      |
| --------------- | ------------------------------------------------------------------------------------ |
| Public Types    |                                                                                      |
| typedef void(\* | [callback\_t](#a0b604e34d37748d5a896f2cca32a346f)) (unsigned char, csd::csd\_string) |

|                         |                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Public Member Functions |                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|                         | [\~KeyPad](#afd290cfb1284260dfed8d790275b0f67) ()                                                                                                                                                                                                                                                                                                                                                                                                 |
| int                     | [enterData](#ae75da121153940018e2e437cede0cc3d) (csd::csd\_string \&data, enum [DataEntryType](/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/ui_8h.md#a20ac1546c46d429507d181c015aaa912) entryType, [callback\_t](#a0b604e34d37748d5a896f2cca32a346f) cb, unsigned char minInputLength, unsigned char maxInputLength, unsigned short timeout=0, unsigned char skipCb9FFE=0) |
|                         | <p>enterData <a href="#ae75da121153940018e2e437cede0cc3d">More...</a><br></p>                                                                                                                                                                                                                                                                                                                                                                     |

|                                                                                   |                                                      |
| --------------------------------------------------------------------------------- | ---------------------------------------------------- |
| Static Public Member Functions                                                    |                                                      |
| static [KeyPad](/s-adk-5.1-programmers-guide/readme/annotated/class_key_pad.md) & | [getInstance](#ad6e661fcf96101fb046bc37b5301691a) () |

### MemberTypedef Documentation <a href="#member-typedef-documentation" id="member-typedef-documentation"></a>

### callback\_t <a href="#a0b604e34d37748d5a896f2cca32a346f" id="a0b604e34d37748d5a896f2cca32a346f"></a>

typedef void(\\\* callback\_t(unsigned char, csd::csd\_string)

### Constructor& Destructor Documentation

### \~KeyPad() <a href="#afd290cfb1284260dfed8d790275b0f67" id="afd290cfb1284260dfed8d790275b0f67"></a>

\\\~[KeyPad](/s-adk-5.1-programmers-guide/readme/annotated/class_key_pad.md)

### MemberFunction Documentation <a href="#member-function-documentation" id="member-function-documentation"></a>

### enterData() <a href="#ae75da121153940018e2e437cede0cc3d" id="ae75da121153940018e2e437cede0cc3d"></a>

int enterData

enterData

**Parameters**

\[out] **data** the entered data/text \[in] **entryType** type of data that have to be antered (PAN, Expiry Date, CVV) \[in] **cb** callback when a digit is entered or Correction button pressed \[in] **minInputLength** minimum number of digits to enter \[in] **maxInputLength** maximum number of digits to enter \[in] **timeout** timeout value for entering the data, default is infinite \[in] **skipCb9FFE** skip sending of callback 9FFE if PAN was entered, default is to send the callback

#### Returns

ok/cancel/timeout

### getInstance() <a href="#ad6e661fcf96101fb046bc37b5301691a" id="ad6e661fcf96101fb046bc37b5301691a"></a>

static [KeyPad](/s-adk-5.1-programmers-guide/readme/annotated/class_key_pad.md)& getInstance

inlinestatic

Singleton design

***

The documentation for this class was generated from the following files:

* sdi/src/[keypad.h](/s-adk-5.1-programmers-guide/keypad_8h_source.md)
* sdi/src/[keypad.cpp](/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/keypad_8cpp.md)
* sdi/src/[keypad\_k81.cpp](/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/keypad__k81_8cpp.md)


---

# 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/annotated/class_key_pad.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.
