|
Embedded SDK
Embedded SDK
|
#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.
Classes | |
| struct | ux_state_s |
| Global UX state shared between the application and the UX event handlers. More... | |
| struct | ux_seph_s |
Macros | |
| #define | BUTTON_LEFT SEPROXYHAL_TAG_BUTTON_PUSH_EVENT_LEFT |
| #define | BUTTON_RIGHT SEPROXYHAL_TAG_BUTTON_PUSH_EVENT_RIGHT |
| #define | UX_INIT() |
| #define | UX_WAKE_UP() |
| #define | UX_BUTTON_PUSH_EVENT(seph_packet) |
| #define | UX_FINGER_EVENT(seph_packet) |
| #define | UX_TICKER_EVENT(seph_packet, callback) |
| #define | UX_DEFAULT_EVENT() |
Typedefs | |
| typedef struct ux_state_s | ux_state_t |
| Application UX state (touch-based devices). | |
| typedef struct ux_seph_s | ux_seph_os_and_app_t |
Functions | |
| void | ux_process_finger_event (const uint8_t seph_packet[]) |
| Process finger event. | |
| void | ux_process_button_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 return code of the ux app. | |
| void | ux_process_default_event (void) |
Variables | |
| ux_state_t | G_ux |
| Global UX state instance — see ux_state_s. | |
| bolos_ux_params_t | G_ux_params |
UX command parameters passed to the OS via os_ux(). | |
| ux_seph_os_and_app_t | G_ux_os |
| #define BUTTON_RIGHT SEPROXYHAL_TAG_BUTTON_PUSH_EVENT_RIGHT |
| #define UX_BUTTON_PUSH_EVENT | ( | seph_packet | ) |
| #define UX_DEFAULT_EVENT | ( | ) |
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
| #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
| #define UX_INIT | ( | ) |
Initialize the user experience structure
| #define UX_TICKER_EVENT | ( | seph_packet, | |
| callback ) |
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.
| #define UX_WAKE_UP | ( | ) |
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.
| typedef struct ux_seph_s ux_seph_os_and_app_t |
| typedef struct ux_state_s ux_state_t |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Global UX state instance — see ux_state_s.
|
extern |