Skip to content

L3tum/RyzenMasterBindings

Repository files navigation

RyzenMasterBindings

Download from nuget

Important Notice

This software uses headers and libs distributed as part of the Ryzen Master SDK. The license agreement can be seen here.

Unfortunately, due to the restrictiveness of the license (and my limited knowledge of copyright law), I am not able to redistribute the header files nor the object files required to build this project completely. However, you can go to the download page for the SDK and download it yourself. You'll then need to place the *.LIB and *.H files in its respective directories inside of RyzenMasterWrapper.

Usage

You can include this library like any other library in your .NET projects. In order to initialize the library you need to call

bool RyzenMasterLibrary.Init(ILogger? logger = null)

You can ignore the logger parameter for now. It's mostly for use as a debugging utility.

Following that, you'll want to call the method

Platform Platform.GetPlatform()

It will return a Platform class that gives access to the installed devices.

You can then enumerate the installed devices with

DeviceManager Platform.GetDeviceManager()
Device DeviceManager.GetDevice(index)

Each device has an associated DeviceType. Using this device type can give you access to further specific device information.

Bios Device.AsBios()
Cpu Device.AsCpu()

Don't forget to free the loaded library after use with

RyzenMasterLibrary.UnInit()

though it would be cleaned up by the OS anyways. You only have to use this if you have a long-running application and don't want to keep the library around.

License

This software is distributed under the MIT License. Any external software used is distributed under its respective license agreement included in its respective directory.