Userspace Resource Manager
Loading...
Searching...
No Matches
SignalRegistry Class Reference

SignalRegistry. More...

#include <SignalRegistry.h>

Public Member Functions

void registerSignal (SignalInfo *signalInfo)
 Used to register a Config specified (through YAML) Signal with Resource Tuner.
SignalInfo * getSignalConfigById (uint64_t sigID, int32_t numArgs=0, const uint32_t *extraAttrs=nullptr)
 Get the SignalInfo object corresponding to the given Signal code.
SignalInfo * getSignalConfigByIdAndType (uint32_t sigCode, uint32_t sigType, int32_t numArgs=0, const uint32_t *extraAttrs=nullptr)
 Get the SignalInfo object corresponding to the given Signal ID and type.

Detailed Description

SignalRegistry.

Stores information Relating to all the Signals available for Tuning. Note: This information is extracted from Config YAML files.

Definition at line 93 of file SignalRegistry.h.

Member Function Documentation

◆ getSignalConfigById()

SignalInfo * SignalRegistry::getSignalConfigById ( uint64_t sigID,
int32_t numArgs = 0,
const uint32_t * extraAttrs = nullptr )

Get the SignalInfo object corresponding to the given Signal code.

Parameters
sigIDA 64-bit signal code.
extraAttrsOptional caller-provided array of size SIGNAL_EXTRA_ATTRS_COUNT, indexed via SignalExtraAttrIndex, carrying Fps/Height/Width values. Pass nullptr (default) for signals without extra attributes. A non-null pointer selects the extra-attrs storage path.
Returns
SignalInfo* or nullptr if not found.

◆ getSignalConfigByIdAndType()

SignalInfo * SignalRegistry::getSignalConfigByIdAndType ( uint32_t sigCode,
uint32_t sigType,
int32_t numArgs = 0,
const uint32_t * extraAttrs = nullptr )

Get the SignalInfo object corresponding to the given Signal ID and type.

Parameters
sigCodeAn unsigned 32-bit signal code.
sigTypeAn unsigned 32-bit signal sub-type.
extraAttrsOptional caller-provided array of size SIGNAL_EXTRA_ATTRS_COUNT, indexed via SignalExtraAttrIndex, carrying Fps/Height/Width values. Pass nullptr (default) for signals without extra attributes. A non-null pointer selects the extra-attrs storage path.
Returns
SignalInfo* or nullptr if not found.

◆ registerSignal()

void SignalRegistry::registerSignal ( SignalInfo * signalInfo)

Used to register a Config specified (through YAML) Signal with Resource Tuner.

The Signal Info is parsed from YAML files. If the SignalInfo provided is Malformed, then it will be freed as part of this routine, else it will be added to the "mSignalsConfigs" vector.


The documentation for this class was generated from the following file: