184 if (stack_slot < UX_STACK_SLOT_COUNT) {
185#ifdef HAVE_UX_STACK_INIT_KEEP_TICKER
186 callback_int_t ticker_callback =
G_ux.stack[stack_slot].ticker_callback;
187 unsigned int ticker_value =
G_ux.stack[stack_slot].ticker_value;
188 unsigned int ticker_interval =
G_ux.stack[stack_slot].ticker_interval;
192 memset(&
G_ux.stack[stack_slot], 0,
sizeof(
G_ux.stack[0]));
194#ifdef HAVE_UX_STACK_INIT_KEEP_TICKER
195 G_ux.stack[stack_slot].ticker_callback = ticker_callback;
196 G_ux.stack[stack_slot].ticker_value = ticker_value;
197 G_ux.stack[stack_slot].ticker_interval = ticker_interval;
201 G_ux.stack[stack_slot].exit_code_after_elements_displayed = BOLOS_UX_CONTINUE;
227 unsigned int elem_idx;
228 unsigned int total_element_count;
229 const bagl_element_t *element;
232 total_element_count = 0;
235 if ((os_perso_isonboarded() != BOLOS_UX_OK || os_global_pin_is_validated() == BOLOS_UX_OK))
238 for (i = 0; i < UX_STACK_SLOT_ARRAY_COUNT && i < slot->element_arrays_count; i++) {
241 elem_idx = slot->element_index - total_element_count;
242 total_element_count += slot->element_arrays[i].element_array_count;
244 while (elem_idx < slot->element_arrays[i].element_array_count) {
245 const bagl_element_t *el;
247 slot->element_index++;
249 element = &slot->element_arrays[i].element_array[elem_idx];
253 if (
G_ux.exit_code != BOLOS_UX_CONTINUE) {
259 if ((
unsigned int) el != 1) {
262 io_seph_ux_display_bagl_element(element);
270 if (slot->element_index == total_element_count) {
274 slot->element_index++;
277 if (slot->displayed_callback) {
280 if (!slot->displayed_callback(0)) {
281 slot->element_index = 0;
282 G_ux.exit_code = BOLOS_UX_CONTINUE;
286 G_ux.exit_code = slot->exit_code_after_elements_displayed;
ux_state_t G_ux
Global UX state instance — see ux_state_s.