24#ifndef NBGL_USE_CASE_ONLY
28#include "seproxyhal_protocol.h"
32#define BUTTON_LEFT SEPROXYHAL_TAG_BUTTON_PUSH_EVENT_LEFT
33#define BUTTON_RIGHT SEPROXYHAL_TAG_BUTTON_PUSH_EVENT_RIGHT
70#ifdef NBGL_USE_CASE_ONLY
73 _Static_assert(0, "UX_INIT() is forbidden on apollo: use the lib_standard_app main()")
75#define UX_INIT() nbgl_objInit();
84 G_ux_params.ux_id = BOLOS_UX_WAKE_UP; \
85 G_ux_params.len = 0; \
86 os_ux(&G_ux_params); \
87 G_ux_params.len = os_sched_last_status(TASK_BOLOS_UX);
94#define UX_BUTTON_PUSH_EVENT(seph_packet)
96#define UX_BUTTON_PUSH_EVENT(seph_packet) ux_process_button_event(seph_packet)
104#define UX_FINGER_EVENT(seph_packet) ux_process_finger_event(seph_packet)
106#define UX_FINGER_EVENT(seph_packet)
113#define UX_TICKER_EVENT(seph_packet, callback) ux_process_ticker_event()
119#define UX_DEFAULT_EVENT() ux_process_default_event()
127 unsigned int ux_status;
unsigned int button_same_mask_counter
Global UX state shared between the application and the UX event handlers.
bolos_task_status_t exit_code
bool validate_pin_from_dashboard
struct ux_seph_s ux_seph_os_and_app_t
ux_seph_os_and_app_t G_ux_os
struct ux_state_s ux_state_t
Application UX state (touch-based devices).
void ux_process_default_event(void)
void ux_process_finger_event(const uint8_t seph_packet[])
void ux_process_ticker_event(void)
Process the ticker_event to the os ux handler. Ticker event callback is always called whatever the re...
void ux_process_button_event(const uint8_t seph_packet[])
Process button push event.