Package-level declarations

Types

Link copied to clipboard

Integration class that combines C code generation with Arduino library packaging.

Link copied to clipboard

Packages generated C code into a complete Arduino library structure.

Link copied to clipboard
data class ArduinoLibraryResult(val libraryPath: String, val memoryRequirements: MemoryLayout, val supportedOperations: List<String>, val generatedFiles: List<String>)

Represents the result of generating an Arduino library from a neural network model.

Link copied to clipboard

Core C code generator that converts SKaiNET ComputeGraph to Arduino-compatible C code.

Link copied to clipboard

Facade to export a high-level model or a prebuilt ComputeGraph into Arduino C code.

Link copied to clipboard
data class LayerCode(val layerName: String, val operationType: String, val inputShape: IntArray, val outputShape: IntArray, val codeFragment: String)

Represents generated C code for a single neural network layer.

Link copied to clipboard
data class MemoryLayout(val maxIntermediateSize: Int, val totalWeightSize: Int, val totalMemoryRequired: Int, val bufferSizes: List<Int>)

Represents memory layout information for generated Arduino C code.

Link copied to clipboard
data class WeightArray(val name: String, val values: FloatArray, val shape: IntArray, val isWeight: Boolean = true)

Represents a weight or bias array for C code generation.

Functions

Link copied to clipboard

Platform-specific directory creation.

Link copied to clipboard
actual fun platformWriteFile(path: String, content: String)
actual fun platformWriteFile(path: String, content: String)
expect fun platformWriteFile(path: String, content: String)

Platform-specific file writing.

actual fun platformWriteFile(path: String, content: String)
actual fun platformWriteFile(path: String, content: String)