ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
book_library.h File Reference

Auto-generated index of the compiled e-book library. More...

#include <stdint.h>
Include dependency graph for book_library.h:

Go to the source code of this file.

Data Structures

struct  book_library_entry_t
 One bundled book: display metadata plus storage/inflate sizes. More...

Enumerations

enum  book_library_count_t : uint16_t { k_book_library_count = 64U }
 Number of books in g_book_library. More...
enum  book_library_scratch_t : uint32_t { k_book_library_max_inflated = 20360476U }
 Largest inflate scratch any bundled book needs, bytes. More...

Variables

static const book_library_entry_t g_book_library [k_book_library_count]
 The bundled book index.

Detailed Description

Auto-generated index of the compiled e-book library.

Generated by tools/epub_compile/src/gen_manifest.py from the .rabook blobs in the e-reader content tree. DO NOT EDIT BY HAND – re-run the generator instead. Each entry names a book and the scratch size its book_open() needs.

Since
Version 0.1.0

Definition in file book_library.h.

Enumeration Type Documentation

◆ book_library_count_t

enum book_library_count_t : uint16_t

Number of books in g_book_library.

Since
Version 0.1.0
Enumerator
k_book_library_count 

Bundled book count.

Definition at line 36 of file book_library.h.

◆ book_library_scratch_t

enum book_library_scratch_t : uint32_t

Largest inflate scratch any bundled book needs, bytes.

Size a shared open() buffer to this and every book fits.

Since
Version 0.1.0
Enumerator
k_book_library_max_inflated 

Worst-case inflated size.

Definition at line 46 of file book_library.h.

Variable Documentation

◆ g_book_library

const book_library_entry_t g_book_library[k_book_library_count]
static

The bundled book index.

Generated; data table, magic numbers ok.

Definition at line 52 of file book_library.h.