Skip to content

module_handler

Classes

ModuleHandler

ModuleHandler(context: CodeGenContext)

Responsible for generating the module source code.

Functions

compute_values
compute_values() -> dict[str, str]

Computes the values needed for generating the module source code.

Returns:

  • dict ( dict[str, str] ) –

    A dictionary containing the computed values for code generation.

generate_common_files
generate_common_files(save_path: Path)

Generates common files for the module.

Parameters:

  • save_path
    (Path) –

    Path to save the generated files.

generate_neuralspot_module
generate_neuralspot_module(save_path: Path)

Generates the NeuralSpot module files.

This method creates the module.mk file for the NeuralSpot module.

generate_zephyr_module
generate_zephyr_module(save_path: Path)

Generates the Zephyr module files.

This method creates the module.yml and CMakeLists.txt files for the Zephyr module.

generate_cmake_module
generate_cmake_module(save_path: Path)

Generates the CMake module files.

This method creates the CMakeLists.txt files for the CMake module.

Functions