|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
One shelf book, sourced from MRAM (baked) or the SD card, in either the .rabook or .epub format. More...
#include <sh_app.h>
Data Fields | |
| bool | from_sd |
| true: read ::sd_name from SD; false: use ::blob. | |
| sh_book_fmt_t | fmt |
| Container format (rabook / epub). | |
| const uint8_t * | blob |
| Baked RBKC bytes (MRAM), or NULL when SD. | |
| uint32_t | blob_len |
| Baked length, or SD file size in bytes. | |
| const uint8_t * | thumb |
| Pre-baked gray8 cover thumbnail, or NULL. | |
| uint16_t | thumb_w |
| Pre-baked thumbnail width. | |
| uint16_t | thumb_h |
| Pre-baked thumbnail height. | |
| char | sd_name [k_sh_name_cap] |
| SD file name, e.g. | |
| char | title [k_sh_title_cap] |
| Display title. | |
| char | author [k_sh_author_cap] |
| Display author. | |
One shelf book, sourced from MRAM (baked) or the SD card, in either the .rabook or .epub format.
The reader/TOC/cover screens are backend-agnostic: sh_book.c opens the right parser by ::fmt and exposes a uniform chapter/cover API.
| char sh_entry_t::author[k_sh_author_cap] |
Display author.
Definition at line 151 of file sh_app.h.
Referenced by sh_book_capture_meta(), sh_cover_render(), sh_sd_listdir_cb(), and sh_seed_baked().
| const uint8_t* sh_entry_t::blob |
Baked RBKC bytes (MRAM), or NULL when SD.
Definition at line 144 of file sh_app.h.
Referenced by sh_book_open_rabook(), sh_comic_open(), and sh_seed_baked().
| uint32_t sh_entry_t::blob_len |
Baked length, or SD file size in bytes.
Definition at line 145 of file sh_app.h.
Referenced by sh_book_open_rabook(), sh_comic_open(), sh_sd_listdir_cb(), and sh_seed_baked().
| sh_book_fmt_t sh_entry_t::fmt |
Container format (rabook / epub).
Definition at line 143 of file sh_app.h.
Referenced by sh_book_open(), sh_comic_open(), and sh_sd_listdir_cb().
| bool sh_entry_t::from_sd |
true: read ::sd_name from SD; false: use ::blob.
Definition at line 142 of file sh_app.h.
Referenced by sh_book_open(), sh_book_open_rabook(), sh_comic_open(), sh_cover_render(), sh_sd_listdir_cb(), sh_seed_baked(), and sh_shelf_build_thumbs().
| char sh_entry_t::sd_name[k_sh_name_cap] |
SD file name, e.g.
"Meditations.rabook".
Definition at line 149 of file sh_app.h.
Referenced by sh_book_open(), sh_book_open_rabook(), sh_comic_open(), and sh_sd_listdir_cb().
| const uint8_t* sh_entry_t::thumb |
Pre-baked gray8 cover thumbnail, or NULL.
Definition at line 146 of file sh_app.h.
Referenced by sh_seed_baked(), and sh_shelf_build_thumbs().
| uint16_t sh_entry_t::thumb_h |
Pre-baked thumbnail height.
Definition at line 148 of file sh_app.h.
Referenced by sh_seed_baked(), and sh_shelf_build_thumbs().
| uint16_t sh_entry_t::thumb_w |
Pre-baked thumbnail width.
Definition at line 147 of file sh_app.h.
Referenced by sh_seed_baked(), and sh_shelf_build_thumbs().
| char sh_entry_t::title[k_sh_title_cap] |
Display title.
Definition at line 150 of file sh_app.h.
Referenced by sh_book_capture_meta(), sh_cover_render(), sh_sd_listdir_cb(), and sh_seed_baked().