import
NVMeConsole has the function to load already created libraries. The import function is used to import library.
Syntax
import(“libname”, “libpath”)
libname
Ignored internally.
libpath
The library full path to import from.
Librarys
.\lib\admincommand.ncs
.\lib\iocommand.ncs
.\lib\nvmedevice.ncs
.\lib\predefinitions.ncs
Examples
Simple example
import(“def”, “.\lib\predefinitions.ncs”)
CtrlProperty.CAP_l
CtrlProperty.CAP_l.offset

val = ReadCtrlReg32(CtrlProperty.CAP_l.offset)
ToHexString(val)

List NVMe Controller Properties
import(“dev”, “.\lib\nvmedevice.ncs”)
CtrlProperty.List
or
CtrlProperty.List(true)


Share this post: on Twitter on Facebook