Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
nbgl_use_case.h
Go to the documentation of this file.
1
7#ifndef NBGL_USE_CASE_H
8#define NBGL_USE_CASE_H
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14/*********************
15 * INCLUDES
16 *********************/
17
18#include "nbgl_content.h"
19#ifdef NBGL_PAGE
20#include "nbgl_page.h"
21#else // NBGL_PAGE
22#include "nbgl_flow.h"
23#endif // NBGL_PAGE
24
25/*********************
26 * DEFINES
27 *********************/
32#define FIRST_USER_TOKEN 20
33
38#define LAST_PAGE_FOR_REVIEW 0xFF
39
43#if defined(TARGET_STAX)
44#define NB_MAX_LINES_IN_DETAILS 12
45#elif defined(TARGET_FLEX)
46#define NB_MAX_LINES_IN_DETAILS 11
47#endif // TARGETS
48
52#if defined(TARGET_STAX)
53#define NB_MAX_LINES_IN_REVIEW 10
54#elif defined(TARGET_FLEX)
55#define NB_MAX_LINES_IN_REVIEW 9
56#endif // TARGETS
57
63#define NB_MAX_DISPLAYED_PAIRS_IN_REVIEW 4
64
68#define TAG_VALUE_AREA_HEIGHT (SCREEN_HEIGHT - SMALL_CENTERING_HEADER - SIMPLE_FOOTER_HEIGHT)
69
73#define INFOS_AREA_HEIGHT (SCREEN_HEIGHT - TOUCHABLE_HEADER_BAR_HEIGHT)
74
78#define TAGLINE_PART1 "This app enables signing\ntransactions on the"
79#define TAGLINE_PART2 "network."
80
84#define APP_DESCRIPTION_MAX_LEN 74
85
89#define MAX_APP_NAME_FOR_SDK_TAGLINE \
90 (APP_DESCRIPTION_MAX_LEN - 1 - (sizeof(TAGLINE_PART1) + sizeof(TAGLINE_PART2)))
91
97#define INIT_HOME_PAGE 0xff
98
100#define STATUS_SCREEN_DURATION 3000
101
102/**********************
103 * MACROS
104 **********************/
105
106/**********************
107 * TYPEDEFS
108 **********************/
112typedef void (*nbgl_callback_t)(void);
113
120typedef bool (*nbgl_navCallback_t)(uint8_t page, nbgl_pageContent_t *content);
121
126typedef void (*nbgl_choiceCallback_t)(bool confirm);
127
132typedef void (*nbgl_actionCallback_t)(uint8_t page);
133
139typedef void (*nbgl_pinValidCallback_t)(const uint8_t *pin, uint8_t pinLen);
140
146typedef void (*nbgl_contentCallback_t)(uint8_t contentIndex, nbgl_content_t *content);
147
158
167
178
184typedef struct {
185 const char *text;
187 const char *modalTitle;
189 union {
192 };
194
204
209typedef struct {
211 const char *const *texts;
212 const char *const *subTexts;
214 const struct nbgl_warningDetails_s
217
236
249
279
291
297#define SKIPPABLE_OPERATION (1 << 4)
298
304#define BLIND_OPERATION (1 << 5)
305
311typedef uint32_t nbgl_operationType_t;
312
327
328/**********************
329 * GLOBAL PROTOTYPES
330 **********************/
331
332void nbgl_useCaseHomeAndSettings(const char *appName,
333 const nbgl_icon_details_t *appIcon,
334 const char *tagline,
335 const uint8_t initSettingPage,
336 const nbgl_genericContents_t *settingContents,
337 const nbgl_contentInfoList_t *infosList,
338 const nbgl_homeAction_t *action,
339 nbgl_callback_t quitCallback);
340
342 const nbgl_contentTagValueList_t *tagValueList,
343 const nbgl_icon_details_t *icon,
344 const char *reviewTitle,
345 const char *reviewSubTitle,
346 const char *finishTitle,
347 nbgl_choiceCallback_t choiceCallback);
348
350 const nbgl_contentTagValueList_t *tagValueList,
351 const nbgl_icon_details_t *icon,
352 const char *reviewTitle,
353 const char *reviewSubTitle,
354 const char *finishTitle,
355 const nbgl_tipBox_t *tipBox,
356 nbgl_choiceCallback_t choiceCallback);
358 const nbgl_contentTagValueList_t *tagValueList,
359 const nbgl_icon_details_t *icon,
360 const char *reviewTitle,
361 const char *reviewSubTitle,
362 const char *finishTitle,
363 const nbgl_tipBox_t *tipBox,
364 const nbgl_warning_t *warning,
365 nbgl_choiceCallback_t choiceCallback);
366
368 const nbgl_contentTagValueList_t *tagValueList,
369 const nbgl_icon_details_t *icon,
370 const char *reviewTitle,
371 const char *reviewSubTitle,
372 const char *finishTitle,
373 nbgl_choiceCallback_t choiceCallback);
374
375void nbgl_useCaseAddressReview(const char *address,
376 const nbgl_contentTagValueList_t *additionalTagValueList,
377 const nbgl_icon_details_t *icon,
378 const char *reviewTitle,
379 const char *reviewSubTitle,
380 nbgl_choiceCallback_t choiceCallback);
381
383 nbgl_callback_t quitCallback);
384
386 const nbgl_icon_details_t *icon,
387 const char *reviewTitle,
388 const char *reviewSubTitle,
389 nbgl_choiceCallback_t choiceCallback);
390
392 const nbgl_icon_details_t *icon,
393 const char *reviewTitle,
394 const char *reviewSubTitle,
395 nbgl_choiceCallback_t choiceCallback);
396
398 const nbgl_icon_details_t *icon,
399 const char *reviewTitle,
400 const char *reviewSubTitle,
401 const nbgl_warning_t *warning,
402 nbgl_choiceCallback_t choiceCallback);
403
405 nbgl_choiceCallback_t choiceCallback,
406 nbgl_callback_t skipCallback);
407
409 nbgl_choiceCallback_t choiceCallback);
410
411void nbgl_useCaseReviewStreamingFinish(const char *finishTitle,
412 nbgl_choiceCallback_t choiceCallback);
413
415 const char *rejectText,
416 nbgl_callback_t rejectCallback);
417
418void nbgl_useCaseGenericConfiguration(const char *title,
419 uint8_t initPage,
420 const nbgl_genericContents_t *contents,
421 nbgl_callback_t quitCallback);
422
423void nbgl_useCaseGenericSettings(const char *appName,
424 uint8_t initPage,
425 const nbgl_genericContents_t *settingContents,
426 const nbgl_contentInfoList_t *infosList,
427 nbgl_callback_t quitCallback);
428
430 const char *message,
431 const char *subMessage,
432 const char *confirmText,
433 const char *rejectString,
434 nbgl_choiceCallback_t callback);
435
436void nbgl_useCaseStatus(const char *message, bool isSuccess, nbgl_callback_t quitCallback);
437
438void nbgl_useCaseConfirm(const char *message,
439 const char *subMessage,
440 const char *confirmText,
441 const char *rejectText,
442 nbgl_callback_t callback);
443void nbgl_useCaseSpinner(const char *text);
444
445void nbgl_useCaseNavigableContent(const char *title,
446 uint8_t initPage,
447 uint8_t nbPages,
448 nbgl_callback_t quitCallback,
449 nbgl_navCallback_t navCallback,
450 nbgl_layoutTouchCallback_t controlsCallback);
451
452// utils
454 const nbgl_contentTagValueList_t *tagValueList,
455 uint8_t startIndex,
456 bool *requireSpecificDisplay);
458 const nbgl_contentTagValueList_t *tagValueList,
459 uint8_t startIndex,
460 bool isSkippable,
461 bool *requireSpecificDisplay);
463 const nbgl_contentInfoList_t *infosList,
464 uint8_t startIndex,
465 bool withNav);
467 const nbgl_contentSwitchesList_t *switchesList,
468 uint8_t startIndex,
469 bool withNav);
471 const nbgl_contentBarsList_t *barsList,
472 uint8_t startIndex,
473 bool withNav);
475 const nbgl_contentRadioChoice_t *choicesList,
476 uint8_t startIndex,
477 bool withNav);
479
480#ifdef HAVE_SE_TOUCH
481// use case drawing
482DEPRECATED void nbgl_useCaseHome(const char *appName,
483 const nbgl_icon_details_t *appIcon,
484 const char *tagline,
485 bool withSettings,
486 nbgl_callback_t topRightCallback,
487 nbgl_callback_t quitCallback);
488DEPRECATED void nbgl_useCaseHomeExt(const char *appName,
489 const nbgl_icon_details_t *appIcon,
490 const char *tagline,
491 bool withSettings,
492 const char *actionButtonText,
493 nbgl_callback_t actionCallback,
494 nbgl_callback_t topRightCallback,
495 nbgl_callback_t quitCallback);
496DEPRECATED void nbgl_useCaseSettings(const char *settingsTitle,
497 uint8_t initPage,
498 uint8_t nbPages,
499 bool touchableTitle,
500 nbgl_callback_t quitCallback,
501 nbgl_navCallback_t navCallback,
502 nbgl_layoutTouchCallback_t controlsCallback);
504 const char *reviewTitle,
505 const char *reviewSubTitle,
506 const char *rejectText,
507 nbgl_callback_t continueCallback,
508 nbgl_callback_t rejectCallback);
509DEPRECATED void nbgl_useCaseRegularReview(uint8_t initPage,
510 uint8_t nbPages,
511 const char *rejectText,
512 nbgl_layoutTouchCallback_t buttonCallback,
513 nbgl_navCallback_t navCallback,
514 nbgl_choiceCallback_t choiceCallback);
516 const nbgl_pageInfoLongPress_t *infoLongPress,
517 const char *rejectText,
518 nbgl_choiceCallback_t callback);
520 const nbgl_pageInfoLongPress_t *infoLongPress,
521 const char *rejectText,
522 nbgl_choiceCallback_t callback);
523
524DEPRECATED void nbgl_useCaseAddressConfirmationExt(const char *address,
525 nbgl_choiceCallback_t callback,
526 const nbgl_contentTagValueList_t *tagValueList);
527#define nbgl_useCaseAddressConfirmation(__address, __callback) \
528 nbgl_useCaseAddressConfirmationExt(__address, __callback, NULL)
529
530#ifdef NBGL_KEYPAD
531void nbgl_useCaseKeypadDigits(const char *title,
532 uint8_t minDigits,
533 uint8_t maxDigits,
534 uint8_t backToken,
535 bool shuffled,
536 tune_index_e tuneId,
537 nbgl_pinValidCallback_t validatePinCallback,
538 nbgl_layoutTouchCallback_t actionCallback);
539void nbgl_useCaseKeypadPIN(const char *title,
540 uint8_t minDigits,
541 uint8_t maxDigits,
542 uint8_t backToken,
543 bool shuffled,
544 tune_index_e tuneId,
545 nbgl_pinValidCallback_t validatePinCallback,
546 nbgl_layoutTouchCallback_t actionCallback);
547#endif // NBGL_KEYPAD
548
549#else // HAVE_SE_TOUCH
550#ifdef NBGL_KEYPAD
551void nbgl_useCaseKeypadDigits(const char *title,
552 uint8_t minDigits,
553 uint8_t maxDigits,
554 bool shuffled,
555 nbgl_pinValidCallback_t validatePinCallback,
556 nbgl_callback_t backCallbackk);
557void nbgl_useCaseKeypadPIN(const char *title,
558 uint8_t minDigits,
559 uint8_t maxDigits,
560 bool shuffled,
561 nbgl_pinValidCallback_t validatePinCallback,
562 nbgl_callback_t backCallback);
563#endif // NBGL_KEYPAD
564#endif // HAVE_SE_TOUCH
565
566#ifdef __cplusplus
567} /* extern "C" */
568#endif
569
570#endif /* NBGL_USE_CASE_H */
common content for Graphical Library
nbgl_contentType_t
The different types of predefined contents.
Flow construction API of NBGL.
void(* nbgl_layoutTouchCallback_t)(int token, uint8_t index)
prototype of function to be called when an object is touched
API of the Advanced BOLOS Graphical Library, for predefined pages.
struct PACKED__ nbgl_icon_details_s nbgl_icon_details_t
Represents all information about an icon.
DEPRECATED void nbgl_useCaseHome(const char *appName, const nbgl_icon_details_t *appIcon, const char *tagline, bool withSettings, nbgl_callback_t topRightCallback, nbgl_callback_t quitCallback)
DEPRECATED void nbgl_useCaseSettings(const char *settingsTitle, uint8_t initPage, uint8_t nbPages, bool touchableTitle, nbgl_callback_t quitCallback, nbgl_navCallback_t navCallback, nbgl_layoutTouchCallback_t controlsCallback)
uint8_t nbgl_useCaseGetNbTagValuesInPageExt(uint8_t nbPairs, const nbgl_contentTagValueList_t *tagValueList, uint8_t startIndex, bool isSkippable, bool *requireSpecificDisplay)
void(* nbgl_callback_t)(void)
prototype of generic callback function
void nbgl_useCaseGenericSettings(const char *appName, uint8_t initPage, const nbgl_genericContents_t *settingContents, const nbgl_contentInfoList_t *infosList, nbgl_callback_t quitCallback)
void nbgl_useCaseKeypadPIN(const char *title, uint8_t minDigits, uint8_t maxDigits, uint8_t backToken, bool shuffled, tune_index_e tuneId, nbgl_pinValidCallback_t validatePinCallback, nbgl_layoutTouchCallback_t actionCallback)
uint32_t nbgl_operationType_t
This mask is used to describe the type of operation to review with additional options It is a mask of...
void nbgl_useCaseReview(nbgl_operationType_t operationType, const nbgl_contentTagValueList_t *tagValueList, const nbgl_icon_details_t *icon, const char *reviewTitle, const char *reviewSubTitle, const char *finishTitle, nbgl_choiceCallback_t choiceCallback)
uint8_t nbgl_useCaseGetNbTagValuesInPage(uint8_t nbPairs, const nbgl_contentTagValueList_t *tagValueList, uint8_t startIndex, bool *requireSpecificDisplay)
uint8_t nbgl_useCaseGetNbPagesForTagValueList(const nbgl_contentTagValueList_t *tagValueList)
DEPRECATED void nbgl_useCaseRegularReview(uint8_t initPage, uint8_t nbPages, const char *rejectText, nbgl_layoutTouchCallback_t buttonCallback, nbgl_navCallback_t navCallback, nbgl_choiceCallback_t choiceCallback)
void(* nbgl_pinValidCallback_t)(const uint8_t *pin, uint8_t pinLen)
prototype of pin validation callback function
void nbgl_useCaseReviewStreamingStart(nbgl_operationType_t operationType, const nbgl_icon_details_t *icon, const char *reviewTitle, const char *reviewSubTitle, nbgl_choiceCallback_t choiceCallback)
void nbgl_useCaseHomeAndSettings(const char *appName, const nbgl_icon_details_t *appIcon, const char *tagline, const uint8_t initSettingPage, const nbgl_genericContents_t *settingContents, const nbgl_contentInfoList_t *infosList, const nbgl_homeAction_t *action, nbgl_callback_t quitCallback)
void nbgl_useCaseStaticReviewLight(const nbgl_contentTagValueList_t *tagValueList, const nbgl_pageInfoLongPress_t *infoLongPress, const char *rejectText, nbgl_choiceCallback_t callback)
uint8_t nbgl_useCaseGetNbInfosInPage(uint8_t nbInfos, const nbgl_contentInfoList_t *infosList, uint8_t startIndex, bool withNav)
void(* nbgl_choiceCallback_t)(bool confirm)
prototype of choice callback function
uint8_t nbgl_useCaseGetNbBarsInPage(uint8_t nbBars, const nbgl_contentBarsList_t *barsList, uint8_t startIndex, bool withNav)
void nbgl_useCaseNavigableContent(const char *title, uint8_t initPage, uint8_t nbPages, nbgl_callback_t quitCallback, nbgl_navCallback_t navCallback, nbgl_layoutTouchCallback_t controlsCallback)
nbgl_homeActionStyle_t
The different types of action button in Home Screen.
@ SOFT_HOME_ACTION
White button, more for extended features.
@ STRONG_HOME_ACTION
Black button, implicating the main action of the App.
void nbgl_useCaseReviewStreamingFinish(const char *finishTitle, nbgl_choiceCallback_t choiceCallback)
void nbgl_useCaseSpinner(const char *text)
void nbgl_useCaseConfirm(const char *message, const char *subMessage, const char *confirmText, const char *rejectText, nbgl_callback_t callback)
void nbgl_useCaseReviewStart(const nbgl_icon_details_t *icon, const char *reviewTitle, const char *reviewSubTitle, const char *rejectText, nbgl_callback_t continueCallback, nbgl_callback_t rejectCallback)
DEPRECATED void nbgl_useCaseHomeExt(const char *appName, const nbgl_icon_details_t *appIcon, const char *tagline, bool withSettings, const char *actionButtonText, nbgl_callback_t actionCallback, nbgl_callback_t topRightCallback, nbgl_callback_t quitCallback)
struct nbgl_warningDetails_s nbgl_warningDetails_t
The necessary parameters to build the page(s) displayed when the top-right button is touched in intro...
void nbgl_useCaseKeypadDigits(const char *title, uint8_t minDigits, uint8_t maxDigits, uint8_t backToken, bool shuffled, tune_index_e tuneId, nbgl_pinValidCallback_t validatePinCallback, nbgl_layoutTouchCallback_t actionCallback)
void nbgl_useCaseStatus(const char *message, bool isSuccess, nbgl_callback_t quitCallback)
nbgl_warningType_t
The different types of pre-defined warnings.
@ W3C_THREAT_DETECTED_WARN
Web3 Checks: Threat detected (see reportRisk field)
@ W3C_ISSUE_WARN
Web3 Checks issue (not available)
@ BLIND_SIGNING_WARN
Blind signing.
@ W3C_NO_THREAT_WARN
Web3 Checks: No Threat detected.
@ W3C_RISK_DETECTED_WARN
Web3 Checks: Risk detected (see reportRisk field)
@ NB_WARNING_TYPES
DEPRECATED void nbgl_useCaseAddressConfirmationExt(const char *address, nbgl_choiceCallback_t callback, const nbgl_contentTagValueList_t *tagValueList)
void nbgl_useCaseGenericConfiguration(const char *title, uint8_t initPage, const nbgl_genericContents_t *contents, nbgl_callback_t quitCallback)
void(* nbgl_actionCallback_t)(uint8_t page)
prototype of function to be called when an page of settings is double-pressed
void nbgl_useCaseReviewStreamingContinueExt(const nbgl_contentTagValueList_t *tagValueList, nbgl_choiceCallback_t choiceCallback, nbgl_callback_t skipCallback)
void nbgl_useCaseReviewBlindSigning(nbgl_operationType_t operationType, const nbgl_contentTagValueList_t *tagValueList, const nbgl_icon_details_t *icon, const char *reviewTitle, const char *reviewSubTitle, const char *finishTitle, const nbgl_tipBox_t *tipBox, nbgl_choiceCallback_t choiceCallback)
void nbgl_useCaseChoice(const nbgl_icon_details_t *icon, const char *message, const char *subMessage, const char *confirmText, const char *rejectString, nbgl_choiceCallback_t callback)
void nbgl_useCaseGenericReview(const nbgl_genericContents_t *contents, const char *rejectText, nbgl_callback_t rejectCallback)
void nbgl_useCaseStaticReview(const nbgl_contentTagValueList_t *tagValueList, const nbgl_pageInfoLongPress_t *infoLongPress, const char *rejectText, nbgl_choiceCallback_t callback)
void nbgl_useCaseReviewStreamingBlindSigningStart(nbgl_operationType_t operationType, const nbgl_icon_details_t *icon, const char *reviewTitle, const char *reviewSubTitle, nbgl_choiceCallback_t choiceCallback)
void nbgl_useCaseReviewStreamingContinue(const nbgl_contentTagValueList_t *tagValueList, nbgl_choiceCallback_t choiceCallback)
void nbgl_useCaseReviewLight(nbgl_operationType_t operationType, const nbgl_contentTagValueList_t *tagValueList, const nbgl_icon_details_t *icon, const char *reviewTitle, const char *reviewSubTitle, const char *finishTitle, nbgl_choiceCallback_t choiceCallback)
uint8_t nbgl_useCaseGetNbChoicesInPage(uint8_t nbChoices, const nbgl_contentRadioChoice_t *choicesList, uint8_t startIndex, bool withNav)
void nbgl_useCaseReviewStatus(nbgl_reviewStatusType_t reviewStatusType, nbgl_callback_t quitCallback)
void(* nbgl_contentCallback_t)(uint8_t contentIndex, nbgl_content_t *content)
prototype of content navigation callback function
nbgl_warningDetailsType_t
The different types of warning page contents.
@ CENTERED_INFO_WARNING
Centered info.
@ QRCODE_WARNING
QR Code.
@ BAR_LIST_WARNING
list of touchable bars, to display sub-pages
nbgl_reviewStatusType_t
The different types of review status.
@ STATUS_TYPE_TRANSACTION_REJECTED
@ STATUS_TYPE_ADDRESS_REJECTED
@ STATUS_TYPE_TRANSACTION_SIGNED
@ STATUS_TYPE_OPERATION_REJECTED
@ STATUS_TYPE_OPERATION_SIGNED
@ STATUS_TYPE_ADDRESS_VERIFIED
@ STATUS_TYPE_MESSAGE_SIGNED
@ STATUS_TYPE_MESSAGE_REJECTED
bool(* nbgl_navCallback_t)(uint8_t page, nbgl_pageContent_t *content)
prototype of navigation callback function
void nbgl_useCaseAddressReview(const char *address, const nbgl_contentTagValueList_t *additionalTagValueList, const nbgl_icon_details_t *icon, const char *reviewTitle, const char *reviewSubTitle, nbgl_choiceCallback_t choiceCallback)
nbgl_opType_t
The different types of operation to review.
@ TYPE_MESSAGE
@ TYPE_TRANSACTION
For operations transferring a coin or taken from an account to another.
@ TYPE_OPERATION
For other types of operation (generic type)
void nbgl_useCaseAdvancedReviewStreamingStart(nbgl_operationType_t operationType, const nbgl_icon_details_t *icon, const char *reviewTitle, const char *reviewSubTitle, const nbgl_warning_t *warning, nbgl_choiceCallback_t choiceCallback)
void nbgl_useCaseAdvancedReview(nbgl_operationType_t operationType, const nbgl_contentTagValueList_t *tagValueList, const nbgl_icon_details_t *icon, const char *reviewTitle, const char *reviewSubTitle, const char *finishTitle, const nbgl_tipBox_t *tipBox, const nbgl_warning_t *warning, nbgl_choiceCallback_t choiceCallback)
uint8_t nbgl_useCaseGetNbSwitchesInPage(uint8_t nbSwitches, const nbgl_contentSwitchesList_t *switchesList, uint8_t startIndex, bool withNav)
This structure contains data to build a BARS_LIST content.
This structure contains info to build a centered (vertically and horizontally) area,...
This structure contains data to build a INFOS_LIST content.
This structure contains data to build a centered info + long press button content.
This structure contains a list of names to build a list of radio buttons (on the right part of screen...
This structure contains a list of [tag,value] pairs.
This structure contains data to build a content.
uint8_t nbContents
number of contents
const nbgl_content_t * contentsList
array of nbgl_content_t (nbContents items).
nbgl_contentCallback_t contentGetterCallback
function to call to retrieve a given content
Structure describing the action button in Home Screen.
const nbgl_icon_details_t * icon
icon to use in action button in Home page
nbgl_callback_t callback
function to call when action button is touched in Home page
const char * text
text to use in action button in Home page
nbgl_homeActionStyle_t style
style of action button
This structure contains info to build a centered (vertically and horizontally) area,...
This structure contains data to build a page in multi-pages mode (nbgl_pageDrawGenericContent)
Definition nbgl_flow.h:58
This structure contains data to build a SWITCHES_LIST content.
The necessary parameters to build a tip-box in first review page and the modal if this tip box is tou...
const char * modalTitle
title given to modal window displayed when tip-box is touched
nbgl_contentInfoList_t infos
infos pairs displayed in modal, if type is INFOS_LIST.
const char * text
text of the tip-box
nbgl_contentType_t type
type of page content in the following union
const nbgl_icon_details_t * icon
icon of the tip-box
The necessary parameters to build a list of touchable bars, to display sub-pages.
const char *const * texts
array of texts for each bar (nbBars items, in black/bold)
const struct nbgl_warningDetails_s * details
array of nbBars structures giving what to display when each bar is touched.
const char *const * subTexts
array of texts for each bar (nbBars items, in black)
uint8_t nbBars
number of touchable bars
const nbgl_icon_details_t ** icons
array of icons for each bar (nbBars items)
The necessary parameters to build the page(s) displayed when the top-right button is touched in intro...
nbgl_warningDetailsType_t type
type of content in the page, determining what to use in the following union
nbgl_contentCenter_t centeredInfo
centered info, if type == CENTERED_INFO_WARNING
const char * title
text of the page (used to go back)
nbgl_layoutQRCode_t qrCode
QR code, if type == QRCODE_WARNING.
nbgl_warningBarList_t barList
touchable bars list, if type == BAR_LIST_WARNING
The necessary parameters to build a warning page preceding a review. One can either use predefinedSet...
const nbgl_icon_details_t * reviewTopRightIcon
const nbgl_warningDetails_t * introDetails
const char * dAppProvider
name of the dApp provider, used in some strings
const nbgl_warningDetails_t * reviewDetails
uint32_t predefinedSet
const char * providerMessage
Dedicated provider message. Default one will be used if NULL.
const nbgl_icon_details_t * introTopRightIcon
icon to use in the intro warning page, if not using pre-defined
const char * reportProvider
name of the security report provider, used in some strings
const char * reportUrl
URL of the report, used in some strings.
const nbgl_contentCenter_t * info
parameters to build the intro warning page, if not using pre-defined
unsigned char uint8_t
Definition usbd_conf.h:53