Embedded SDK
Embedded SDK
nbgl_flow.h
Go to the documentation of this file.
1 
7 #ifndef NBGL_FLOW_H
8 #define NBGL_FLOW_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 /*********************
15  * INCLUDES
16  *********************/
17 
18 #include "nbgl_step.h"
19 #include "nbgl_obj.h"
20 #include "nbgl_types.h"
21 
22 /*********************
23  * DEFINES
24  *********************/
25 
26 /**********************
27  * TYPEDEFS
28  **********************/
33 typedef void *nbgl_flow_t;
34 
38 typedef void (*nbgl_stepCallback_t)(void);
39 
43 typedef struct nbgl_stepDesc_s {
46  const char *text;
47  const char *subText;
49 #ifdef HAVE_LANGUAGE_PACK
50  UX_LOC_STRINGS_INDEX textId;
51 #endif // HAVE_LANGUAGE_PACK
53 
55 
56 /**********************
57  * GLOBAL PROTOTYPES
58  **********************/
59 
61  uint8_t nbSteps,
62  uint8_t initStep,
63  bool loop,
64  bool modal);
66 
67 /**********************
68  * MACROS
69  **********************/
70 
71 #ifdef __cplusplus
72 } /* extern "C" */
73 #endif
74 
75 #endif /* NBGL_FLOW_H */
void(* nbgl_stepCallback_t)(void)
prototype of function to be called when a step is using a callback on "double-key" action
Definition: nbgl_flow.h:38
nbgl_stepDesc_t nbgl_pageContent_t
Definition: nbgl_flow.h:54
void nbgl_flowRelease(nbgl_flow_t flow)
struct nbgl_stepDesc_s nbgl_stepDesc_t
Structure containing all specific information when creating a NBGL step.
void * nbgl_flow_t
type shared externally
Definition: nbgl_flow.h:33
nbgl_flow_t nbgl_flowDraw(const nbgl_stepDesc_t *steps, uint8_t nbSteps, uint8_t initStep, bool loop, bool modal)
API to draw all basic graphic objects.
Step construction API of NBGL.
common types for Graphical Library
struct PACKED__ nbgl_icon_details_s nbgl_icon_details_t
Represents all information about an icon.
Structure containing all specific information when creating a NBGL step.
Definition: nbgl_flow.h:43
const char * subText
sub-text to display in step (NULL most of the time)
Definition: nbgl_flow.h:47
nbgl_stepCallback_t callback
if not NULL, function to be called on "double-key" action
Definition: nbgl_flow.h:45
const nbgl_icon_details_t * icon
icon to display in step (text must be single-page)
Definition: nbgl_flow.h:48
nbgl_stepCallback_t init
if not NULL, function to be called when the step is entered
Definition: nbgl_flow.h:44
const char * text
text to display in step (can be multi-pages if icon == NULL)
Definition: nbgl_flow.h:46
unsigned char uint8_t
Definition: usbd_conf.h:53
BOLOS_UX_LOC_STRINGS UX_LOC_STRINGS_INDEX