#include "os_math.h"
#include "os_ux.h"
#include "os_task.h"
#include "nbgl_screen.h"
#include "nbgl_touch.h"
#include "seproxyhal_protocol.h"
#include <string.h>
#include "glyphs.h"
Go to the source code of this file.
◆ BUTTON_LEFT
| #define BUTTON_LEFT SEPROXYHAL_TAG_BUTTON_PUSH_EVENT_LEFT |
◆ BUTTON_RIGHT
| #define BUTTON_RIGHT SEPROXYHAL_TAG_BUTTON_PUSH_EVENT_RIGHT |
◆ UX_BUTTON_PUSH_EVENT
| #define UX_BUTTON_PUSH_EVENT |
( |
| seph_packet | ) |
|
Value:
void ux_process_button_event(const uint8_t seph_packet[])
Process button push event.
forward the button push/release events to the os ux handler. if not used by it, it will be used by App controls
Definition at line 96 of file ux_nbgl.h.
◆ UX_DEFAULT_EVENT
| #define UX_DEFAULT_EVENT |
( |
| ) |
|
Value:
void ux_process_default_event(void)
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 119 of file ux_nbgl.h.
◆ UX_FINGER_EVENT
| #define UX_FINGER_EVENT |
( |
| seph_packet | ) |
|
forward the finger_event to the os ux handler. if not used by it, it will be used by App controls
Definition at line 106 of file ux_nbgl.h.
◆ UX_INIT
Value:Initialize the user experience structure
Definition at line 75 of file ux_nbgl.h.
◆ UX_TICKER_EVENT
| #define UX_TICKER_EVENT |
( |
| seph_packet, |
|
|
| callback ) |
Value:
void ux_process_ticker_event(void)
Process the ticker_event to the os ux handler. Ticker event callback is always called whatever the re...
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 113 of file ux_nbgl.h.
◆ UX_WAKE_UP
Value:Request a wake up of the device (pin lock screen, ...) to display a new interface to the user. Wake up prevents power-off features. Therefore, security wise, this function shall only be called to request direct user interaction.
Definition at line 83 of file ux_nbgl.h.
◆ ux_seph_os_and_app_t
◆ ux_process_button_event()
| void ux_process_button_event |
( |
const uint8_t | seph_packet[] | ) |
|
|
extern |
Process button push event.
- Note
- Application's button push/release event handler is called only if the ux app does not deny it (button event caught by BOLOS UX page).
- Parameters
-
| seph_packet | received SEPH packet |
Definition at line 91 of file ux.c.
◆ ux_process_default_event()
| void ux_process_default_event |
( |
void | | ) |
|
|
extern |
Forwards the event to UX
Definition at line 147 of file ux.c.
◆ ux_process_finger_event()
| void ux_process_finger_event |
( |
const uint8_t | seph_packet[] | ) |
|
|
extern |
◆ ux_process_ticker_event()
| void ux_process_ticker_event |
( |
void | | ) |
|
|
extern |
Process the ticker_event to the os ux handler. Ticker event callback is always called whatever the return code of the ux app.
- Note
- Ticker event interval is assumed to be 100 ms.
Definition at line 111 of file ux.c.
◆ G_ux
◆ G_ux_os
◆ G_ux_params
| bolos_ux_params_t G_ux_params |
|
extern |
UX command parameters passed to the OS via os_ux().
Definition at line 35 of file main.c.