api.h Source File#
|
mbltml Test Preview
mbltml — EN
|
api.h
Go to the documentation of this file.
MBLTML_EXPORT int mbltmlGetSubDeviceId(int dev_no, mbltmlStatusCode_t &sc)
Get the PCIe subsystem device ID of a device.
MBLTML_EXPORT mbltmlStatusCode_t mbltmlInit()
Initialize the mbltml library for all supported device types.
MBLTML_EXPORT std::vector< mbltmlProcessInfo_t > mbltmlGetProcessInfos(int dev_no, mbltmlStatusCode_t &sc)
Get per-process usage information for a device.
MBLTML_EXPORT mbltmlStatusCode_t mbltmlSetExtraPmicID(int dev_no, mbltmlExtraPmicId_t pmic_id)
Select which extra PMIC rail subsequent mbltmlGetExtraPmic*() queries refer to.
MBLTML_EXPORT int mbltmlGetFanDuty(int dev_no, mbltmlStatusCode_t &sc)
Get the current cooling-fan duty cycle of a device.
MBLTML_EXPORT int mbltmlGetFirmwareCRC(int dev_no, mbltmlStatusCode_t &sc)
Get the CRC of the currently-loaded firmware image.
MBLTML_EXPORT double mbltmlGetTotalUtilization(int dev_no, mbltmlStatusCode_t &sc)
Get the overall NPU utilization of a device.
MBLTML_EXPORT mbltmlExtraPmicId_t mbltmlGetExtraPmicId(int dev_no, mbltmlStatusCode_t &sc)
Get the extra PMIC rail currently selected for the device.
MBLTML_EXPORT double mbltmlGetTotalCurrent(int dev_no, mbltmlStatusCode_t &sc)
Get the total instantaneous current draw of a device (A).
MBLTML_EXPORT mbltmlStatusCode_t mbltmlShutdown()
Release all resources held by the mbltml library.
MBLTML_EXPORT int mbltmlGetBusClock(int dev_no, mbltmlStatusCode_t &sc)
Get the current bus clock frequency of a device.
MBLTML_EXPORT double mbltmlGetExtraPmicVoltage(int dev_no, mbltmlStatusCode_t &sc)
Get the voltage of the extra PMIC rail currently selected for the device (V).
MBLTML_EXPORT int mbltmlGetPcieGen(int dev_no, mbltmlStatusCode_t &sc)
Get the negotiated PCIe link generation of a device.
MBLTML_EXPORT int mbltmlGetPcieClassCode(int dev_no, mbltmlStatusCode_t &sc)
Get the PCIe configuration-space class code of a device.
MBLTML_EXPORT std::string mbltmlGetNodeName(int dev_no, mbltmlStatusCode_t &sc)
Get the node name of a device.
MBLTML_EXPORT int mbltmlGetPcieLanes(int dev_no, mbltmlStatusCode_t &sc)
Get the negotiated PCIe link width (in lanes) of a device.
MBLTML_EXPORT int mbltmlGetDeviceCount(mbltmlStatusCode_t &sc)
Get the total number of devices detected by the library.
MBLTML_EXPORT std::vector< mbltmlCoreInfo_t > mbltmlGetCoreInfos(int dev_no, mbltmlStatusCode_t &sc)
Get per-core usage information for a device.
MBLTML_EXPORT int mbltmlGetSignalType(int dev_no, mbltmlStatusCode_t &sc)
Get the current signal-type indicator reported by the device.
MBLTML_EXPORT int mbltmlGetSubVendorId(int dev_no, mbltmlStatusCode_t &sc)
Get the PCIe subsystem vendor ID of a device.
MBLTML_EXPORT int mbltmlGetDeviceId(int dev_no, mbltmlStatusCode_t &sc)
Get the PCIe device ID of a device.
MBLTML_EXPORT double mbltmlGetTotalPower(int dev_no, mbltmlStatusCode_t &sc)
Get the total instantaneous power consumption of a device (W).
MBLTML_EXPORT int64_t mbltmlGetMemoryTotal(int dev_no, mbltmlStatusCode_t &sc)
Get the total amount of device memory available.
MBLTML_EXPORT int mbltmlGetFirmwareRevision(int dev_no, mbltmlStatusCode_t &sc)
Get the firmware revision number of a device.
MBLTML_EXPORT double mbltmlGetExtraPmicCurrent(int dev_no, mbltmlStatusCode_t &sc)
Get the current of the extra PMIC rail currently selected for the device (A).
MBLTML_EXPORT std::string mbltmlGetDriverVersion(mbltmlDeviceType_t dt, mbltmlStatusCode_t &sc)
Get the driver version string for a specific device family.
MBLTML_EXPORT int mbltmlGetTemperature(int dev_no, mbltmlStatusCode_t &sc)
Get the current die temperature of a device.
MBLTML_EXPORT uint32_t mbltmlGetDriverRevision(mbltmlDeviceType_t dt, mbltmlStatusCode_t &sc)
Get the driver revision number for a specific device family.
MBLTML_EXPORT mbltmlHardwareVersion_t mbltmlGetHardwareVersion(int dev_no, mbltmlStatusCode_t &sc)
Get the hardware version of a device.
MBLTML_EXPORT int mbltmlGetVendorId(int dev_no, mbltmlStatusCode_t &sc)
Get the PCIe vendor ID of a device.
MBLTML_EXPORT int mbltmlGetPcieRev(int dev_no, mbltmlStatusCode_t &sc)
Get the PCIe configuration-space revision ID of a device.
MBLTML_EXPORT std::string mbltmlGetFirmwareVersion(int dev_no, mbltmlStatusCode_t &sc)
Get the firmware version string of a device.
MBLTML_EXPORT mbltmlDeviceType_t mbltmlGetDeviceType(int dev_no, mbltmlStatusCode_t &sc)
Get the device family type of a device.
MBLTML_EXPORT double mbltmlGetExtraPmicPower(int dev_no, mbltmlStatusCode_t &sc)
Get the power consumption of the extra PMIC rail currently selected for the device (W).
MBLTML_EXPORT int64_t mbltmlGetMemoryUsage(int dev_no, mbltmlStatusCode_t &sc)
Get the amount of device memory currently in use.
MBLTML_EXPORT int mbltmlGetNPUClock(int dev_no, mbltmlStatusCode_t &sc)
Get the current NPU clock frequency of a device.
MBLTML_EXPORT mbltmlStatusCode_t mbltmlInitDevices(const std::unordered_set< mbltmlDeviceType_t > &device_types)
Initialize the mbltml library for a selected set of device types.
MBLTML_EXPORT double mbltmlGetTotalVoltage(int dev_no, mbltmlStatusCode_t &sc)
Get the total instantaneous supply voltage of a device (V).
Generated by