Embedded SDK
Embedded SDK
|
common types for Graphical Library More...
#include <stddef.h>
#include <stdint.h>
#include <stdbool.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... | |
Macros | |
#define | SCREEN_WIDTH 480 |
#define | SCREEN_HEIGHT 600 |
#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 More... | |
Typedefs | |
typedef struct PACKED__ nbgl_area_s | nbgl_area_t |
Represents a rectangle area of the screen. More... | |
typedef enum nbgl_post_refresh_t | nbgl_post_refresh_t |
Post refresh modes. More... | |
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. More... | |
typedef uint8_t | nbgl_color_map_t |
Represents the color_map to be used for 2BPP image, or the foreground color for 1BPP image. More... | |
typedef struct PACKED__ nbgl_icon_details_s | nbgl_icon_details_t |
Represents all information about an icon. More... | |
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 266 of file nbgl_types.h.
#define INVALID_COLOR_MAP 0x0 |
Code to be used for color map when not used
Definition at line 73 of file nbgl_types.h.
#define MAX | ( | x, | |
y | |||
) | ((x) > (y) ? (x) : (y)) |
Definition at line 82 of file nbgl_types.h.
#define MIN | ( | x, | |
y | |||
) | ((x) < (y) ? (x) : (y)) |
Definition at line 79 of file nbgl_types.h.
#define NO_TRANSFORMATION 0 |
No transformation
Definition at line 55 of file nbgl_types.h.
#define PACKED__ __attribute__((packed)) |
Definition at line 88 of file nbgl_types.h.
#define ROTATE_90_CLOCKWISE 0x4 |
Rotation 90 degrees clockwise when rendering bitmap
Definition at line 67 of file nbgl_types.h.
#define SCREEN_HEIGHT 600 |
Height of the front screen in pixels
Definition at line 45 of file nbgl_types.h.
#define SCREEN_WIDTH 480 |
Width of the front screen in pixels
Definition at line 32 of file nbgl_types.h.
#define VERTICAL_MIRROR 0x2 |
Vertical mirroring when rendering bitmap
Definition at line 61 of file nbgl_types.h.
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 355 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 348 of file nbgl_types.h.
enum color_t |
Enumerator | |
---|---|
BLACK | |
DARK_GRAY | |
LIGHT_GRAY | |
WHITE | |
NB_NBGL_COLOR |
Definition at line 101 of file nbgl_types.h.
enum nbgl_aligment_t |
All types of alignments.
Definition at line 140 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 244 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 255 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 169 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 208 of file nbgl_types.h.
enum nbgl_obj_type_t |
All types of graphical objects.
Definition at line 115 of file nbgl_types.h.
enum nbgl_post_refresh_t |
Post refresh modes.
Definition at line 315 of file nbgl_types.h.
possible modes for QR Code
Definition at line 190 of file nbgl_types.h.
enum nbgl_radius_t |
possible radius for objects
Enumerator | |
---|---|
RADIUS_32_PIXELS | 32 pixels |
RADIUS_44_PIXELS | 44 pixels |
RADIUS_MAX | |
RADIUS_0_PIXELS | no radius (square angle) |
Definition at line 326 of file nbgl_types.h.
enum nbgl_refresh_mode_t |
different modes of refresh for nbgl_refreshSpecial()
Definition at line 287 of file nbgl_types.h.
enum nbgl_state_t |
to represent a boolean state.
Enumerator | |
---|---|
OFF_STATE | |
ON_STATE |
Definition at line 160 of file nbgl_types.h.
enum nbgl_style_t |
possible styles for text area border
Enumerator | |
---|---|
NO_STYLE | no border |
Definition at line 178 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 200 of file nbgl_types.h.
enum nbgl_touchType_t |
The different types of Touchscreen events.
Definition at line 220 of file nbgl_types.h.