Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
ux_bagl.h File Reference
#include "bolos_target.h"
#include "lcx_ecfp.h"
#include "os_math.h"
#include "os_ux.h"
#include "os_task.h"
#include "os_screen.h"
#include "ux_layouts.h"
#include "ux_flow_engine.h"
#include "bagl.h"
#include <string.h>
#include "glyphs.h"
Include dependency graph for ux_bagl.h:

Go to the source code of this file.

Classes

struct  bagl_element_e
struct  ux_layout_strings_params_s
struct  ux_layout_icon_strings_params_s
struct  ux_menu_entry_s
struct  ux_menu_state_s
struct  ux_turner_step_s
struct  ux_turner_state_s
struct  ux_stack_slot_s
struct  ux_state_s
 Global UX state shared between the application and the UX event handlers. More...
struct  ux_seph_s

Macros

#define COMPLIANCE_UX_160
#define HAVE_UX_LEGACY
#define STATIC_IF_NOT_INDEXED   static
#define BUTTON_FAST_THRESHOLD_CS   8
#define BUTTON_FAST_ACTION_CS   3
#define BUTTON_LEFT   1
#define BUTTON_RIGHT   2
#define BUTTON_EVT_FAST   0x40000000UL
#define BUTTON_EVT_RELEASED   0x80000000UL
#define UX_STACK_SLOT_COUNT   1
#define UX_STACK_SLOT_ARRAY_COUNT   1
#define G_ux   ux
#define G_ux_params   ux.params
#define callback_interval_ms   stack[0].ticker_interval
#define UX_INIT()
#define UX_DISPLAY_NEXT_ELEMENT()
#define UX_WAKE_UP()
#define UX_REDISPLAY_REQUEST()
#define UX_REDISPLAY_IDX(index)
#define UX_REDISPLAY()
#define UX_DISPLAY(elements_array, preprocessor)
#define UX_DISPLAY_REQUEST(elements_array, preprocessor)
#define UX_CALLBACK_SET_INTERVAL(ms)
#define UX_FORWARD_EVENT(callback, ignoring_app_if_ux_busy)
#define UX_CONTINUE_DISPLAY_APP(displayed_callback)
#define UX_DISPLAYED_EVENT(displayed_callback)
#define UX_DISPLAYED()
#define UX_WAIT_DISPLAYED()
#define UX_BUTTON_PUSH_EVENT(seph_packet)
#define UX_FINGER_EVENT(seph_packet)
#define UX_TICKER_EVENT(seph_packet, callback)
#define UX_DEFAULT_EVENT()
#define UX_DISPLAY_KEYBOARD(callback)
#define UX_MENU_END
#define UX_MENU_INIT()
#define UX_MENU_DISPLAY(current_entry, menu_entries, menu_entry_preprocessor)
#define UX_MENU_UNCHANGED_ENTRY   (-1UL)
#define UX_TURNER_INIT()
#define UX_TURNER_DISPLAY(current_step, steps, steps_count, button_push_callback)
#define UX_TURNER_UNCHANGED_ENTRY   (-1UL)

Typedefs

typedef struct bagl_element_e bagl_element_t
typedef const bagl_element_t *(* bagl_element_callback_t) (const bagl_element_t *element)
typedef struct ux_layout_strings_params_s ux_layout_strings_params_t
typedef struct ux_layout_icon_strings_params_s ux_layout_icon_strings_params_t
typedef unsigned int(* button_push_callback_t) (unsigned int button_mask, unsigned int button_mask_counter)
typedef unsigned int(* callback_int_t) (unsigned int)
typedef struct ux_stack_slot_s ux_stack_slot_t
typedef struct ux_state_s ux_state_t
 Application UX state (touch-based devices).
typedef void(* ux_menu_callback_t) (unsigned int userid)
typedef struct ux_menu_entry_s ux_menu_entry_t
typedef const bagl_element_t *(* ux_menu_preprocessor_t) (const ux_menu_entry_t *, bagl_element_t *element)
typedef const ux_menu_entry_t *(* ux_menu_iterator_t) (unsigned int entry_idx)
typedef struct ux_menu_state_s ux_menu_state_t
typedef void(* ux_turner_callback_t) (void)
typedef struct ux_turner_step_s ux_turner_step_t
typedef struct ux_turner_state_s ux_turner_state_t
typedef struct ux_seph_s ux_seph_os_and_app_t

Functions

void io_seproxyhal_touch (const bagl_element_t *elements, unsigned short element_count, unsigned short x, unsigned short y, unsigned char event_kind)
void io_seproxyhal_touch_element_callback (const bagl_element_t *elements, unsigned short element_count, unsigned short x, unsigned short y, unsigned char event_kind, bagl_element_callback_t before_display)
void io_seproxyhal_touch_callback (const bagl_element_t *element, unsigned char event)
const bagl_element_t * ux_layout_strings_prepro (const bagl_element_t *element)
void io_seproxyhal_button_push (button_push_callback_t button_push_callback, unsigned int new_button_mask)
void io_seproxyhal_display (const bagl_element_t *element)
unsigned int bagl_label_roundtrip_duration_ms (const bagl_element_t *e, unsigned int average_char_width)
unsigned int bagl_label_roundtrip_duration_ms_buf (const bagl_element_t *e, const char *str, unsigned int average_char_width)
void io_seproxyhal_display_default (const bagl_element_t *element)
unsigned int ux_stack_is_element_array_present (const bagl_element_t *element_array)
unsigned int ux_stack_push (void)
unsigned int ux_stack_pop (void)
void ux_stack_insert (unsigned int stack_slot)
void ux_stack_remove (unsigned int stack_slot)
void ux_stack_init (unsigned int stack_slot)
void ux_stack_display (unsigned int stack_slot)
void ux_stack_al_display_next_element (unsigned int stack_slot)
void ux_stack_redisplay (void)
const bagl_element_t * ux_stack_display_element_callback (const bagl_element_t *element)
void ux_stack_display_elements (ux_stack_slot_t *slot)
static void ux_discard_button_gesture (void)
void ux_menu_display (unsigned int current_entry, const ux_menu_entry_t *menu_entries, ux_menu_preprocessor_t menu_entry_preprocessor)
const bagl_element_t * ux_menu_element_preprocessor (const bagl_element_t *element)
unsigned int ux_menu_elements_button (unsigned int button_mask, unsigned int button_mask_counter)
void ux_turner_display (unsigned int current_step, const ux_turner_step_t *steps, unsigned int steps_count, button_push_callback_t button_callback)
void ux_turner_ticker (unsigned int elpased_ms)

Variables

ux_state_t G_ux
ux_seph_os_and_app_t G_ux_os
ux_menu_state_t ux_menu
ux_turner_state_t ux_turner

Macro Definition Documentation

◆ BUTTON_EVT_FAST

#define BUTTON_EVT_FAST   0x40000000UL

Definition at line 132 of file ux_bagl.h.

◆ BUTTON_EVT_RELEASED

#define BUTTON_EVT_RELEASED   0x80000000UL

Definition at line 133 of file ux_bagl.h.

◆ BUTTON_FAST_ACTION_CS

#define BUTTON_FAST_ACTION_CS   3

Definition at line 124 of file ux_bagl.h.

◆ BUTTON_FAST_THRESHOLD_CS

#define BUTTON_FAST_THRESHOLD_CS   8

Definition at line 121 of file ux_bagl.h.

◆ BUTTON_LEFT

#define BUTTON_LEFT   1

Definition at line 129 of file ux_bagl.h.

◆ BUTTON_RIGHT

#define BUTTON_RIGHT   2

Definition at line 130 of file ux_bagl.h.

◆ callback_interval_ms

#define callback_interval_ms   stack[0].ticker_interval

Definition at line 325 of file ux_bagl.h.

◆ COMPLIANCE_UX_160

#define COMPLIANCE_UX_160

Definition at line 34 of file ux_bagl.h.

◆ G_ux

#define G_ux   ux

Definition at line 323 of file ux_bagl.h.

◆ G_ux_params

#define G_ux_params   ux.params

Definition at line 324 of file ux_bagl.h.

◆ HAVE_UX_LEGACY

#define HAVE_UX_LEGACY

Definition at line 35 of file ux_bagl.h.

◆ STATIC_IF_NOT_INDEXED

#define STATIC_IF_NOT_INDEXED   static

Definition at line 74 of file ux_bagl.h.

◆ UX_BUTTON_PUSH_EVENT

#define UX_BUTTON_PUSH_EVENT ( seph_packet)
Value:
{ \
if (G_ux.stack[0].button_push_callback) { \
io_seproxyhal_button_push(G_ux.stack[0].button_push_callback, \
seph_packet[3] >> 1); \
} \
UX_CONTINUE_DISPLAY_APP({}); \
}, \
1);
#define UX_FORWARD_EVENT(callback, ignoring_app_if_ux_busy)
Definition ux_bagl.h:444
#define G_ux
Definition ux_bagl.h:323

Process button push events. Application's button event handler is called only if the ux app does not deny it (modal frame displayed).

Definition at line 489 of file ux_bagl.h.

◆ UX_CALLBACK_SET_INTERVAL

#define UX_CALLBACK_SET_INTERVAL ( ms)
Value:
G_ux.stack[0].ticker_value = ms;

Request a screen redisplay after the given milliseconds interval has passed. Interval is not repeated, it's a single shot callback. must be re-enabled (the JS way).

Definition at line 438 of file ux_bagl.h.

◆ UX_CONTINUE_DISPLAY_APP

#define UX_CONTINUE_DISPLAY_APP ( displayed_callback)
Value:
/* all items have been displayed */ \
if (G_ux.stack[0].element_index >= G_ux.stack[0].element_arrays[0].element_array_count) { \
displayed_callback \
}
#define UX_DISPLAY_NEXT_ELEMENT()
Definition ux_bagl.h:349

Definition at line 457 of file ux_bagl.h.

◆ UX_DEFAULT_EVENT

#define UX_DEFAULT_EVENT ( )
Value:
#define UX_CONTINUE_DISPLAY_APP(displayed_callback)
Definition ux_bagl.h:457

Forward the event, ignoring the UX return code, the event must therefore be either not processed or processed with extreme care by the application afterwards

Definition at line 532 of file ux_bagl.h.

◆ UX_DISPLAY

#define UX_DISPLAY ( elements_array,
preprocessor )
Value:
G_ux.stack[0].element_arrays[0].element_array = elements_array; \
G_ux.stack[0].element_arrays[0].element_array_count \
= sizeof(elements_array) / sizeof(elements_array[0]); \
G_ux.stack[0].button_push_callback = elements_array##_button; \
G_ux.stack[0].screen_before_element_display_callback = preprocessor; \
UX_WAKE_UP(); \
UX_REDISPLAY();

Definition at line 412 of file ux_bagl.h.

◆ UX_DISPLAY_KEYBOARD

#define UX_DISPLAY_KEYBOARD ( callback)
Value:
G_ux_params.ux_id = BOLOS_UX_KEYBOARD; \
G_ux_params.len = 0; \
os_ux(&G_ux_params); \
G_ux_params.len = os_sched_last_status(TASK_BOLOS_UX);
#define G_ux_params
Definition ux_bagl.h:324

Start displaying the system keyboard input to allow. keyboard entry ends when any ux call returns with an OK status.

Definition at line 538 of file ux_bagl.h.

◆ UX_DISPLAY_NEXT_ELEMENT

#define UX_DISPLAY_NEXT_ELEMENT ( )
Value:
if (G_ux.stack[0].element_arrays[0].element_array \
&& G_ux.stack[0].element_index < G_ux.stack[0].element_arrays[0].element_array_count \
&& (os_perso_isonboarded() != BOLOS_UX_OK \
|| os_global_pin_is_validated() == BOLOS_UX_OK)) { \
while (G_ux.stack[0].element_index \
< G_ux.stack[0].element_arrays[0].element_array_count) { \
const bagl_element_t *element \
= &G_ux.stack[0].element_arrays[0].element_array[G_ux.stack[0].element_index]; \
if (!G_ux.stack[0].screen_before_element_display_callback \
|| (element = G_ux.stack[0].screen_before_element_display_callback(element))) { \
if ((unsigned int) element \
== 1) { /*backward compat with coding to avoid smashing everything*/ \
element = &G_ux.stack[0] \
.element_arrays[0] \
.element_array[G_ux.stack[0].element_index]; \
} \
io_seph_ux_display_bagl_element(element); \
} \
G_ux.stack[0].element_index++; \
} \
if (G_ux.stack[0].element_index == G_ux.stack[0].element_arrays[0].element_array_count) { \
screen_update(); \
} \
}
struct bagl_element_e bagl_element_t
Definition ux_bagl.h:51

Request displaying the next element in the UX structure. Take into account if a seproxyhal status has already been issued. Take into account if the next element is allowed/denied for display by the registered preprocessor

Definition at line 349 of file ux_bagl.h.

◆ UX_DISPLAY_REQUEST

#define UX_DISPLAY_REQUEST ( elements_array,
preprocessor )
Value:
G_ux.stack[0].element_arrays[0].element_array = elements_array; \
G_ux.stack[0].element_arrays[0].element_array_count \
= sizeof(elements_array) / sizeof(elements_array[0]); \
G_ux.stack[0].button_push_callback = elements_array##_button; \
G_ux.stack[0].screen_before_element_display_callback = preprocessor; \
UX_WAKE_UP();
static void ux_discard_button_gesture(void)
Definition ux_bagl.h:564

Request the given UX to be redisplayed without emitting a display status right now (to continue current operation, like transferring an USB reply)

Definition at line 425 of file ux_bagl.h.

◆ UX_DISPLAYED

#define UX_DISPLAYED ( )
Value:
(G_ux.stack[0].element_index >= G_ux.stack[0].element_arrays[0].element_array_count)

Deprecated version to be removed

Definition at line 473 of file ux_bagl.h.

◆ UX_DISPLAYED_EVENT

#define UX_DISPLAYED_EVENT ( displayed_callback)
Value:
UX_FORWARD_EVENT({ UX_CONTINUE_DISPLAY_APP(displayed_callback); }, 1)

Process display processed event (by the os_ux or by the application code)

Definition at line 467 of file ux_bagl.h.

◆ UX_FINGER_EVENT

#define UX_FINGER_EVENT ( seph_packet)

Definition at line 500 of file ux_bagl.h.

◆ UX_FORWARD_EVENT

#define UX_FORWARD_EVENT ( callback,
ignoring_app_if_ux_busy )
Value:
G_ux_params.ux_id = BOLOS_UX_EVENT; \
G_ux_params.len = 0; \
os_ux(&G_ux_params); \
G_ux_params.len = os_sched_last_status(TASK_BOLOS_UX); \
if (G_ux_params.len == BOLOS_UX_REDRAW) { \
UX_REDISPLAY(); \
} \
else if (!ignoring_app_if_ux_busy \
|| (G_ux_params.len != BOLOS_UX_IGNORE && G_ux_params.len != BOLOS_UX_CONTINUE)) { \
callback; \
}

internal bolos ux event processing with callback in case event is to be processed by the application

Definition at line 444 of file ux_bagl.h.

◆ UX_INIT

#define UX_INIT ( )
Value:
memset(&G_ux, 0, sizeof(G_ux)); \
ux_stack_push();

Definition at line 326 of file ux_bagl.h.

◆ UX_MENU_DISPLAY

#define UX_MENU_DISPLAY ( current_entry,
menu_entries,
menu_entry_preprocessor )
Value:
ux_menu_display(current_entry, menu_entries, menu_entry_preprocessor);
void ux_menu_display(unsigned int current_entry, const ux_menu_entry_t *menu_entries, ux_menu_preprocessor_t menu_entry_preprocessor)

Definition at line 579 of file ux_bagl.h.

◆ UX_MENU_END

#define UX_MENU_END
Value:
{ \
NULL, NULL, 0, NULL, NULL, NULL, 0, 0 \
}

Definition at line 572 of file ux_bagl.h.

◆ UX_MENU_INIT

#define UX_MENU_INIT ( )
Value:
memset(&ux_menu, 0, sizeof(ux_menu));
ux_menu_state_t ux_menu

Definition at line 577 of file ux_bagl.h.

◆ UX_MENU_UNCHANGED_ENTRY

#define UX_MENU_UNCHANGED_ENTRY   (-1UL)

Definition at line 583 of file ux_bagl.h.

◆ UX_REDISPLAY

#define UX_REDISPLAY ( )
Value:
#define UX_REDISPLAY_IDX(index)
Definition ux_bagl.h:398

Redisplay all elements of the screen

Definition at line 410 of file ux_bagl.h.

◆ UX_REDISPLAY_IDX

#define UX_REDISPLAY_IDX ( index)
Value:
G_ux.stack[0].element_index = index; \
/* REDRAW is redisplay already, use os_ux return value to check */ \
G_ux_params.len = os_sched_last_status(TASK_BOLOS_UX); \
if (G_ux_params.len != BOLOS_UX_IGNORE && G_ux_params.len != BOLOS_UX_CONTINUE) { \
UX_DISPLAY_NEXT_ELEMENT(); \
}

Force redisplay of the screen from the given index in the screen's element array. The displayed content may differ from the one on which an ongoing button gesture started: that gesture is discarded until all buttons are released, so that its release can't act on the redisplayed screen

Definition at line 398 of file ux_bagl.h.

◆ UX_REDISPLAY_REQUEST

#define UX_REDISPLAY_REQUEST ( )
Value:
G_ux.stack[0].element_index = 0;

Redisplay request (no immediate display status sent)

Definition at line 389 of file ux_bagl.h.

◆ UX_STACK_SLOT_ARRAY_COUNT

#define UX_STACK_SLOT_ARRAY_COUNT   1

Definition at line 155 of file ux_bagl.h.

◆ UX_STACK_SLOT_COUNT

#define UX_STACK_SLOT_COUNT   1

Definition at line 151 of file ux_bagl.h.

◆ UX_TICKER_EVENT

#define UX_TICKER_EVENT ( seph_packet,
callback )
Value:
{ \
unsigned int UX_ALLOWED \
= (G_ux_params.len != BOLOS_UX_IGNORE && G_ux_params.len != BOLOS_UX_CONTINUE); \
if (G_ux.stack[0].ticker_value) { \
G_ux.stack[0].ticker_value -= MIN(G_ux.stack[0].ticker_value, 100); \
if (!G_ux.stack[0].ticker_value) { \
if (!G_ux.stack[0].ticker_callback) { \
callback \
} \
else { \
G_ux.stack[0].ticker_value = G_ux.stack[0].ticker_interval; \
G_ux.stack[0].ticker_callback(0); \
} \
} \
} \
if (UX_ALLOWED) { \
UX_CONTINUE_DISPLAY_APP({}); \
} \
}, \
0);
#define MIN(x, y)
Definition nbgl_types.h:131

forward the ticker_event to the os ux handler. Ticker event callback is always called whatever the return code of the ux app. Ticker event interval is assumed to be 100 ms.

Definition at line 505 of file ux_bagl.h.

◆ UX_TURNER_DISPLAY

#define UX_TURNER_DISPLAY ( current_step,
steps,
steps_count,
button_push_callback )
Value:
ux_turner_display(current_step, steps, steps_count, button_push_callback);
void ux_turner_display(unsigned int current_step, const ux_turner_step_t *steps, unsigned int steps_count, button_push_callback_t button_callback)

Definition at line 593 of file ux_bagl.h.

◆ UX_TURNER_INIT

#define UX_TURNER_INIT ( )
Value:
memset(&ux_turner, 0, sizeof(ux_turner));
ux_turner_state_t ux_turner

Definition at line 591 of file ux_bagl.h.

◆ UX_TURNER_UNCHANGED_ENTRY

#define UX_TURNER_UNCHANGED_ENTRY   (-1UL)

Definition at line 597 of file ux_bagl.h.

◆ UX_WAIT_DISPLAYED

#define UX_WAIT_DISPLAYED ( )
Value:
while (!UX_DISPLAYED()) { \
UX_DISPLAY_NEXT_ELEMENT(); \
}
#define UX_DISPLAYED()
Definition ux_bagl.h:473

Macro to process sequentially display a screen. The call finishes when the UX is completely displayed, and the state of the MCU <-> SE exchanges is the same as before this macro call.

Definition at line 480 of file ux_bagl.h.

◆ UX_WAKE_UP

#define UX_WAKE_UP ( )
Value:
G_ux_params.ux_id = BOLOS_UX_WAKE_UP; \
G_ux_params.len = 0; \
os_ux(&G_ux_params); \
G_ux_params.len = os_sched_last_status(TASK_BOLOS_UX);

Request a wake up of the device (backlight, pin lock screen, ...) to display a new interface to the user. Wake up prevent both autolock and power off features. Therefore, security wise, this function shall only be called to request direct user interaction.

Definition at line 380 of file ux_bagl.h.

Typedef Documentation

◆ bagl_element_callback_t

typedef const bagl_element_t *(* bagl_element_callback_t) (const bagl_element_t *element)

Definition at line 54 of file ux_bagl.h.

◆ bagl_element_t

Definition at line 51 of file ux_bagl.h.

◆ button_push_callback_t

typedef unsigned int(* button_push_callback_t) (unsigned int button_mask, unsigned int button_mask_counter)

Definition at line 127 of file ux_bagl.h.

◆ callback_int_t

typedef unsigned int(* callback_int_t) (unsigned int)

Definition at line 158 of file ux_bagl.h.

◆ ux_layout_icon_strings_params_t

◆ ux_layout_strings_params_t

◆ ux_menu_callback_t

typedef void(* ux_menu_callback_t) (unsigned int userid)

Definition at line 201 of file ux_bagl.h.

◆ ux_menu_entry_t

Definition at line 203 of file ux_bagl.h.

◆ ux_menu_iterator_t

typedef const ux_menu_entry_t *(* ux_menu_iterator_t) (unsigned int entry_idx)

Definition at line 225 of file ux_bagl.h.

◆ ux_menu_preprocessor_t

typedef const bagl_element_t *(* ux_menu_preprocessor_t) (const ux_menu_entry_t *, bagl_element_t *element)

Definition at line 223 of file ux_bagl.h.

◆ ux_menu_state_t

◆ ux_seph_os_and_app_t

◆ ux_stack_slot_t

Definition at line 160 of file ux_bagl.h.

◆ ux_state_t

typedef struct ux_state_s ux_state_t

Application UX state (touch-based devices).

Common structure for applications to perform asynchronous UX aside IO operations

Definition at line 165 of file ux_bagl.h.

◆ ux_turner_callback_t

typedef void(* ux_turner_callback_t) (void)

Definition at line 236 of file ux_bagl.h.

◆ ux_turner_state_t

◆ ux_turner_step_t

Function Documentation

◆ bagl_label_roundtrip_duration_ms()

unsigned int bagl_label_roundtrip_duration_ms ( const bagl_element_t * e,
unsigned int average_char_width )

◆ bagl_label_roundtrip_duration_ms_buf()

unsigned int bagl_label_roundtrip_duration_ms_buf ( const bagl_element_t * e,
const char * str,
unsigned int average_char_width )

◆ io_seproxyhal_button_push()

void io_seproxyhal_button_push ( button_push_callback_t button_push_callback,
unsigned int new_button_mask )

◆ io_seproxyhal_display()

void io_seproxyhal_display ( const bagl_element_t * element)

◆ io_seproxyhal_display_default()

void io_seproxyhal_display_default ( const bagl_element_t * element)

◆ io_seproxyhal_touch()

void io_seproxyhal_touch ( const bagl_element_t * elements,
unsigned short element_count,
unsigned short x,
unsigned short y,
unsigned char event_kind )

◆ io_seproxyhal_touch_callback()

void io_seproxyhal_touch_callback ( const bagl_element_t * element,
unsigned char event )

◆ io_seproxyhal_touch_element_callback()

void io_seproxyhal_touch_element_callback ( const bagl_element_t * elements,
unsigned short element_count,
unsigned short x,
unsigned short y,
unsigned char event_kind,
bagl_element_callback_t before_display )

◆ ux_discard_button_gesture()

void ux_discard_button_gesture ( void )
inlinestatic

To be called when the displayed content is (or may be) replaced: if a button is held, its gesture started on the previous content and must not act on the new one. Button events are then ignored until all buttons are released, the final release included.

Definition at line 564 of file ux_bagl.h.

◆ ux_layout_strings_prepro()

const bagl_element_t * ux_layout_strings_prepro ( const bagl_element_t * element)

Common strings prepro tosave space

◆ ux_menu_display()

void ux_menu_display ( unsigned int current_entry,
const ux_menu_entry_t * menu_entries,
ux_menu_preprocessor_t menu_entry_preprocessor )

◆ ux_menu_element_preprocessor()

const bagl_element_t * ux_menu_element_preprocessor ( const bagl_element_t * element)

◆ ux_menu_elements_button()

unsigned int ux_menu_elements_button ( unsigned int button_mask,
unsigned int button_mask_counter )

◆ ux_stack_al_display_next_element()

void ux_stack_al_display_next_element ( unsigned int stack_slot)

Function to be implemented by the UX manager (to allow specific callback and processing of the target) The next displayable element of the given stack slot must be displayed

◆ ux_stack_display()

void ux_stack_display ( unsigned int stack_slot)

Definition at line 292 of file ux_stack.c.

◆ ux_stack_display_element_callback()

const bagl_element_t * ux_stack_display_element_callback ( const bagl_element_t * element)

Definition at line 206 of file ux_stack.c.

◆ ux_stack_display_elements()

void ux_stack_display_elements ( ux_stack_slot_t * slot)

Definition at line 225 of file ux_stack.c.

◆ ux_stack_init()

void ux_stack_init ( unsigned int stack_slot)

Definition at line 175 of file ux_stack.c.

◆ ux_stack_insert()

void ux_stack_insert ( unsigned int stack_slot)

Definition at line 115 of file ux_stack.c.

◆ ux_stack_is_element_array_present()

unsigned int ux_stack_is_element_array_present ( const bagl_element_t * element_array)

Definition at line 29 of file ux_stack.c.

◆ ux_stack_pop()

unsigned int ux_stack_pop ( void )

Definition at line 59 of file ux_stack.c.

◆ ux_stack_push()

unsigned int ux_stack_push ( void )

Definition at line 45 of file ux_stack.c.

◆ ux_stack_redisplay()

void ux_stack_redisplay ( void )

Definition at line 89 of file ux_stack.c.

◆ ux_stack_remove()

void ux_stack_remove ( unsigned int stack_slot)

Definition at line 144 of file ux_stack.c.

◆ ux_turner_display()

void ux_turner_display ( unsigned int current_step,
const ux_turner_step_t * steps,
unsigned int steps_count,
button_push_callback_t button_callback )

◆ ux_turner_ticker()

void ux_turner_ticker ( unsigned int elpased_ms)

Variable Documentation

◆ G_ux

ux_state_t G_ux
extern

Definition at line 34 of file main.c.

◆ G_ux_os

ux_seph_os_and_app_t G_ux_os
extern

◆ ux_menu

ux_menu_state_t ux_menu
extern

◆ ux_turner

ux_turner_state_t ux_turner
extern