Expand description
Internal libc-style helpers for the C libraries linked into Xila.
LVGL and LittleFS expect a C library (malloc, memcpy, strlen, …).
Their Rust glue (graphics’ LVGL hooks and little_fs’ stubs) forwards to
the functions of this crate, which allocate through the system
memory manager and implement the memory and string primitives.
This crate is plain Rust: it exports no C symbols, ships no header and is
not an application ABI. The public native ABI is xila-abi-application.
Structs§
Constants§
- MEMORY_
CAPABILITIES_ ALWAYS_ ACCESSIBLE - Memory stays accessible when external flash caches are disabled.
- MEMORY_
CAPABILITIES_ DIRECT_ MEMORY_ ACCESS - Memory is accessible by DMA controllers.
- MEMORY_
CAPABILITIES_ EXECUTE - Memory can be used for code execution.
- MEMORY_
CAPABILITIES_ NONE - No special capabilities: standard memory.
Functions§
- into_
pointer - Converts a function that returns an
Option<NonNull<P>>into a raw C-compatible pointer. - memory_
allocate ⚠ - Allocates a memory block with specified properties.
- memory_
allocate_ ⚠core - Allocates a memory block with default properties.
- memory_
compare ⚠ - Compare memory blocks
- memory_
copy ⚠ - Copy memory from source to destination
- memory_
deallocate ⚠ - Deallocates a previously allocated memory block.
- memory_
move ⚠ - Move memory from source to destination (handles overlapping regions)
- memory_
reallocate ⚠ - Reallocates a memory block to a new size.
- memory_
set ⚠ - Set memory to a specific value
- string_
compare ⚠ - Compare two null-terminated strings
- string_
compare_ ⚠bounded - Compare two strings up to n characters
- string_
concatenate ⚠ - Concatenate source string to destination string
- string_
copy ⚠ - Copy string from source to destination
- string_
copy_ ⚠bounded - Copy string from source to destination with maximum length
- string_
duplicate ⚠ - Duplicate a string
- string_
duplicate_ ⚠bounded - Duplicate a string up to a maximum length
- string_
get_ ⚠length - Get the length of a null-terminated string
- string_
get_ ⚠length_ bounded - Get the length of a null-terminated string with maximum length
Type Aliases§
- Memory
Capabilities - Memory capability flags requested from the memory manager.