Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
ux_loc_layouts.h
Go to the documentation of this file.
1
2/*******************************************************************************
3 * Ledger Nano S - Secure firmware
4 * (c) 2022 Ledger
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 ********************************************************************************/
18#pragma once
19
20#include "bolos_target.h"
21
22#include "bagl.h"
23#include "bolos_ux_loc_strings.h"
24
25typedef BOLOS_UX_LOC_STRINGS UX_LOC_STRINGS_INDEX;
26
27//********************************************************************************
31
32#define ux_loc_layout_nn_paging_params_t ux_loc_layout_params_t
33#define ux_loc_layout_nb_paging_params_t ux_loc_layout_params_t
34#define ux_loc_layout_bn_paging_params_t ux_loc_layout_params_t
35#define ux_loc_layout_bb_paging_params_t ux_loc_layout_params_t
36#define ux_loc_layout_nnn_params_t ux_loc_layout_params_t
37#define ux_loc_layout_bnn_params_t ux_loc_layout_params_t
38#define ux_loc_layout_nnnn_params_t ux_loc_layout_params_t
39#define ux_loc_layout_bnnn_params_t ux_loc_layout_params_t
40#define ux_loc_layout_nnbnn_params_t ux_loc_layout_params_t
41#define ux_loc_layout_pages_params_t ux_loc_layout_params_t
42
47
48#define ux_loc_layout_pb_params_t ux_loc_layout_icon_params_t
49#define ux_loc_layout_pn_params_t ux_loc_layout_icon_params_t
50#define ux_loc_layout_pbb_params_t ux_loc_layout_icon_params_t
51#define ux_loc_layout_pnn_params_t ux_loc_layout_icon_params_t
52#define ux_loc_layout_pbn_params_t ux_loc_layout_icon_params_t
53
54//********************************************************************************
58
59#if (BAGL_WIDTH == 128 && BAGL_HEIGHT == 64)
60#define UX_LAYOUT_PAGES_LINE_COUNT 4
61#elif (BAGL_WIDTH == 128 && BAGL_HEIGHT == 32)
62#define UX_LAYOUT_PAGES_LINE_COUNT 2
63#else
64#error "BAGL_WIDTH/BAGL_HEIGHT not defined"
65#endif
66
67void ux_layout_pages_init(unsigned int stack_slot);
68void ux_loc_layout_pages_init(unsigned int stack_slot);
69void ux_loc_layout_paging_init(unsigned int stack_slot);
70
71// deprecation
72#define ux_loc_layout_bnnn_paging_init ux_loc_layout_bn_paging_init
73#define ux_loc_layout_bnnn_paging_reset ux_layout_paging_reset
74#define ux_loc_layout_bn_paging_reset ux_layout_paging_reset
const bagl_icon_details_t * icon
const UX_LOC_STRINGS_INDEX index
const UX_LOC_STRINGS_INDEX index
struct ux_loc_layout_params_s ux_loc_layout_params_t
void ux_layout_pages_init(unsigned int stack_slot)
void ux_loc_layout_paging_init(unsigned int stack_slot)
BOLOS_UX_LOC_STRINGS UX_LOC_STRINGS_INDEX
void ux_loc_layout_pages_init(unsigned int stack_slot)
struct ux_layout_pages_params_s ux_layout_pages_params_t
struct ux_loc_layout_icon_params_s ux_loc_layout_icon_params_t