Expand description
Stub/driver config block handling for AXF/ELF files.
This module focuses only on locating, reading, and overwriting the fixed-size T_EXT_DRIVER_CFG block inside a file. It does not handle encrypted ram_patch images (imgtool) or any CLI parsing concerns.
Structs§
Enums§
Constants§
Functions§
- clear_
stub_ config_ in_ bytes - Clear the config by writing an empty block (masks set to zero).
- clear_
stub_ config_ in_ file - Clear the config block in a file by writing an empty block.
- find_
stub_ config_ offset - Scan for the first valid driver config block and return its offset.
- read_
stub_ config_ at - Parse a driver config block at the given offset.
- read_
stub_ config_ from_ bytes - Locate and parse a driver config block from raw bytes.
- read_
stub_ config_ from_ file - Read and parse a driver config block from a file.
- write_
stub_ config_ at - Overwrite a driver config block at the given offset.
- write_
stub_ config_ to_ bytes - Locate and overwrite a driver config block inside a byte buffer.
- write_
stub_ config_ to_ file - Overwrite a driver config block in a file.