|
Embedded SDK
Embedded SDK
|
#include <string.h>#include <stdlib.h>#include "nbgl_debug.h"#include "nbgl_layout_internal_nanos.h"#include "glyphs.h"#include "os_pic.h"#include "os_helpers.h"#include "lcx_rng.h"
Go to the source code of this file.
Functions | |
| int | nbgl_layoutAddKeypad (nbgl_layout_t *layout, keyboardCallback_t callback, const char *text, bool shuffled) |
| Adds a keypad on bottom of the screen, with the associated callback. | |
| int | nbgl_layoutUpdateKeypad (nbgl_layout_t *layout, uint8_t index, bool enableValidate, bool enableBackspace) |
| Updates an existing keypad on bottom of the screen, with the given configuration. | |
| int | nbgl_layoutAddHiddenDigits (nbgl_layout_t *layout, uint8_t nbDigits) |
| Adds a placeholder for hidden digits on top of a keypad, to represent the entered digits, as full circles. | |
| int | nbgl_layoutUpdateHiddenDigits (nbgl_layout_t *layout, uint8_t index, uint8_t nbActive) |
| Updates an existing set of hidden digits, with the given configuration. | |
| int | nbgl_layoutAddKeypadContent (nbgl_layout_t *layout, bool hidden, uint8_t nbDigits, const char *text) |
| Adds an area with a title and a placeholder for hidden digits on top of a keypad, to represent the entered digits as small discs. | |
| int | nbgl_layoutUpdateKeypadContent (nbgl_layout_t *layout, bool hidden, uint8_t nbActiveDigits, const char *text) |
| Updates an existing set of hidden digits, with the given configuration. | |
| int nbgl_layoutAddHiddenDigits | ( | nbgl_layout_t * | layout, |
| uint8_t | nbDigits | ||
| ) |
Adds a placeholder for hidden digits on top of a keypad, to represent the entered digits, as full circles.
| layout | the current layout |
| nbDigits | number of digits to be displayed |
Definition at line 161 of file nbgl_layout_keypad_nanos.c.
| int nbgl_layoutAddKeypad | ( | nbgl_layout_t * | layout, |
| keyboardCallback_t | callback, | ||
| const char * | text, | ||
| bool | shuffled | ||
| ) |
Adds a keypad on bottom of the screen, with the associated callback.
| layout | the current layout |
| callback | function called when any of the key is touched |
| text | text to use as title for the keypad |
| shuffled | if set to true, digits are shuffled in keypad |
Definition at line 59 of file nbgl_layout_keypad_nanos.c.
| int nbgl_layoutAddKeypadContent | ( | nbgl_layout_t * | layout, |
| bool | hidden, | ||
| uint8_t | nbDigits, | ||
| const char * | text | ||
| ) |
Adds an area with a title and a placeholder for hidden digits on top of a keypad, to represent the entered digits as small discs.
| layout | the current layout |
| hidden | if set to true, digits appear as discs, otherwise as visible digits (given in text param) |
| nbDigits | number of digits to be displayed (only used if hidden is true) |
| text | only used if hidden is false |
Definition at line 196 of file nbgl_layout_keypad_nanos.c.
| int nbgl_layoutUpdateHiddenDigits | ( | nbgl_layout_t * | layout, |
| uint8_t | index, | ||
| uint8_t | nbActive | ||
| ) |
Updates an existing set of hidden digits, with the given configuration.
| layout | the current layout |
| index | index returned by nbgl_layoutAddHiddenDigits() |
| nbActive | number of "active" digits (represented by discs instead of circles) |
Definition at line 174 of file nbgl_layout_keypad_nanos.c.
| int nbgl_layoutUpdateKeypad | ( | nbgl_layout_t * | layout, |
| uint8_t | index, | ||
| bool | enableValidate, | ||
| bool | enableBackspace | ||
| ) |
Updates an existing keypad on bottom of the screen, with the given configuration.
| layout | the current layout |
| index | index returned by nbgl_layoutAddKeypad() |
| enableValidate | if true, enable Validate key |
| enableBackspace | if true, enable Backspace key |
Definition at line 112 of file nbgl_layout_keypad_nanos.c.
| int nbgl_layoutUpdateKeypadContent | ( | nbgl_layout_t * | layout, |
| bool | hidden, | ||
| uint8_t | nbActiveDigits, | ||
| const char * | text | ||
| ) |
Updates an existing set of hidden digits, with the given configuration.
| layout | the current layout |
| hidden | if set to true, digits appear as discs, otherwise as visible digits (given in text param) |
| nbActiveDigits | number of "active" digits (represented by discs instead of circles) (only used if hidden is true) |
| text | only used if hidden is false |
Definition at line 277 of file nbgl_layout_keypad_nanos.c.