Embedded SDK
Embedded SDK
|
common types for Graphical Library More...
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "app_config.h"
#include "bolos_target.h"
Go to the source code of this file.
Classes | |
struct | nbgl_area_s |
Represents a rectangle area of the screen. More... | |
struct | nbgl_icon_details_s |
Represents all information about an icon. More... | |
struct | nbgl_animation_s |
Represents all information about an animation (succession of icons) More... | |
Macros | |
#define | NO_TRANSFORMATION 0 |
#define | VERTICAL_MIRROR 0x2 |
#define | ROTATE_90_CLOCKWISE 0x4 |
#define | INVALID_COLOR_MAP 0x0 |
#define | MIN(x, y) ((x) < (y) ? (x) : (y)) |
#define | MAX(x, y) ((x) > (y) ? (x) : (y)) |
#define | PACKED__ __attribute__((packed)) |
#define | GZLIB_UNCOMPRESSED_CHUNK 2049 |
size of gzlib uncompression buffer in bytes | |
Typedefs | |
typedef struct PACKED__ nbgl_area_s | nbgl_area_t |
Represents a rectangle area of the screen. | |
typedef enum nbgl_post_refresh_t | nbgl_post_refresh_t |
Post refresh modes. | |
typedef uint8_t | nbgl_transformation_t |
Represents the transformation to be applied on the bitmap before rendering This is a bitfield using masks as VERTICAL_MIRROR. | |
typedef uint8_t | nbgl_color_map_t |
Represents the color_map to be used for 2BPP image, or the foreground color for 1BPP image. | |
typedef struct PACKED__ nbgl_icon_details_s | nbgl_icon_details_t |
Represents all information about an icon. | |
typedef struct nbgl_animation_s | nbgl_animation_t |
Represents all information about an animation (succession of icons) | |
common types for Graphical Library
Definition in file nbgl_types.h.
#define GZLIB_UNCOMPRESSED_CHUNK 2049 |
size of gzlib uncompression buffer in bytes
Definition at line 285 of file nbgl_types.h.
#define INVALID_COLOR_MAP 0x0 |
Code to be used for color map when not used
Definition at line 92 of file nbgl_types.h.
#define MAX | ( | x, | |
y | |||
) | ((x) > (y) ? (x) : (y)) |
Definition at line 101 of file nbgl_types.h.
#define MIN | ( | x, | |
y | |||
) | ((x) < (y) ? (x) : (y)) |
Definition at line 98 of file nbgl_types.h.
#define NO_TRANSFORMATION 0 |
Width, height of the front screen in pixels and common sizes of icons and fonts No transformation
Definition at line 74 of file nbgl_types.h.
#define PACKED__ __attribute__((packed)) |
Definition at line 107 of file nbgl_types.h.
#define ROTATE_90_CLOCKWISE 0x4 |
Rotation 90 degrees clockwise when rendering bitmap
Definition at line 86 of file nbgl_types.h.
#define VERTICAL_MIRROR 0x2 |
Vertical mirroring when rendering bitmap
Definition at line 80 of file nbgl_types.h.
typedef struct nbgl_animation_s nbgl_animation_t |
Represents all information about an animation (succession of icons)
typedef struct PACKED__ nbgl_area_s nbgl_area_t |
Represents a rectangle area of the screen.
typedef uint8_t nbgl_color_map_t |
Represents the color_map to be used for 2BPP image, or the foreground color for 1BPP image.
Definition at line 369 of file nbgl_types.h.
typedef struct PACKED__ nbgl_icon_details_s nbgl_icon_details_t |
Represents all information about an icon.
typedef enum nbgl_post_refresh_t nbgl_post_refresh_t |
Post refresh modes.
typedef uint8_t nbgl_transformation_t |
Represents the transformation to be applied on the bitmap before rendering This is a bitfield using masks as VERTICAL_MIRROR.
Definition at line 362 of file nbgl_types.h.
enum color_t |
Enumerator | |
---|---|
BLACK | |
DARK_GRAY | |
LIGHT_GRAY | |
WHITE | |
NB_NBGL_COLOR |
Definition at line 120 of file nbgl_types.h.
enum nbgl_aligment_t |
All types of alignments.
Definition at line 159 of file nbgl_types.h.
enum nbgl_bpp_t |
Enum to represent the number of bits per pixel (BPP)
Enumerator | |
---|---|
NBGL_BPP_1 | 1 bit per pixel |
NBGL_BPP_2 | 2 bits per pixel |
NBGL_BPP_4 | 4 bits per pixel |
NB_NBGL_BPP | Number of NBGL_BPP enums. |
Definition at line 263 of file nbgl_types.h.
enum nbgl_compression_t |
Enum to represent the compression.
Enumerator | |
---|---|
NBGL_NO_COMPRESSION | no compression, raw data |
NBGL_GZLIB_COMPRESSION | gzlib compression |
NBGL_RLE_COMPRESSION | RLE compression. |
NB_NBGL_COMPRESSION | Number of NBGL_COMPRESSION enums. |
Definition at line 274 of file nbgl_types.h.
enum nbgl_direction_t |
Directions for layout or lines.
Enumerator | |
---|---|
VERTICAL | from top to bottom |
HORIZONTAL | from left to right |
Definition at line 188 of file nbgl_types.h.
enum nbgl_hardwareSwipe_t |
Hardware powered detected swipe states.
Enumerator | |
---|---|
HARDWARE_SWIPE_UP | |
HARDWARE_SWIPE_DOWN | |
HARDWARE_SWIPE_RIGHT | |
HARDWARE_SWIPE_LEFT | |
NO_HARDWARE_SWIPE |
Definition at line 227 of file nbgl_types.h.
enum nbgl_obj_type_t |
All types of graphical objects.
Definition at line 134 of file nbgl_types.h.
enum nbgl_parsingType_t |
possible parsings of icons to create animation
Enumerator | |
---|---|
LOOP_PARSING | 0, 1, 2, 0, 1, 2, ... |
BACK_AND_FORTH_PARSING | 0, 1, 2, 1, 2, 0, ... |
Definition at line 387 of file nbgl_types.h.
enum nbgl_post_refresh_t |
Post refresh modes.
Definition at line 332 of file nbgl_types.h.
possible modes for QR Code
Definition at line 209 of file nbgl_types.h.
enum nbgl_radius_t |
possible radius indexes for objects
Enumerator | |
---|---|
RADIUS_8_PIXELS | |
RADIUS_32_PIXELS | |
RADIUS_40_PIXELS | |
RADIUS_44_PIXELS | |
RADIUS_MAX | |
RADIUS_0_PIXELS | no radius (square angle) |
Definition at line 343 of file nbgl_types.h.
enum nbgl_refresh_mode_t |
different modes of refresh for nbgl_refreshSpecial()
Definition at line 306 of file nbgl_types.h.
enum nbgl_state_t |
to represent a boolean state.
Enumerator | |
---|---|
OFF_STATE | |
ON_STATE |
Definition at line 179 of file nbgl_types.h.
enum nbgl_style_t |
possible styles for text area border
Enumerator | |
---|---|
NO_STYLE | no border |
Definition at line 197 of file nbgl_types.h.
enum nbgl_touchState_t |
the 2 possible states of a finger on the Touchscreen
Enumerator | |
---|---|
RELEASED | the finger has been released from the screen |
PRESSED | the finger is currently pressing the screen |
Definition at line 219 of file nbgl_types.h.
enum nbgl_touchType_t |
The different types of Touchscreen events.
Definition at line 239 of file nbgl_types.h.