void libmem_register_driver(libmem_driver_handle_t *h, uint8_t *start, size_t size, const libmem_geometry_t *geometry, const libmem_flash_info_t *flash_info, const libmem_driver_functions_t *driver_functions, const libmem_ext_driver_functions_t *ext_driver_functions);
libmem_register_driver registers a LIBMEM driver instance.
h — A pointer to the handle of the LIBMEM driver being registered.
start — A Pointer to the start of the address range handled by the LIBMEM driver.
size — The size of the address range handled by the LIBMEM driver in bytes.
geometry — A pointer to a null-terminated geometry description list or NULL if not required.
flash_info — A pointer to the FLASH information structure or NULL if not required.
driver_functions — A pointer to the structure describing the LIBMEM driver's functions.
ext_driver_functions — A pointer to the structure describing the LIBMEM driver's extended functions, or NULL if not required.
This function adds a LIBMEM driver to the list of LIBMEM drivers currently installed. This function is not normally called directly by an application, it is typically called by a LIBMEM driver's own register function.