ParentDeviceLookupStatusSignalT(UInt16, Int32, FuncDictionaryInt32, StatusSignalT, String, Boolean) Method

Looks up a status signal and inserts it into the local dictionary if not found

Definition

Namespace: CTRE.Phoenix6.Hardware
Assembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
C#
protected StatusSignal<T> LookupStatusSignal<T>(
	ushort spn,
	int mapIter,
	Func<Dictionary<int, StatusSignal<T>>> generator,
	string signalName,
	bool reportOnConstruction
)

Parameters

spn  UInt16
SPN index to lookup
mapIter  Int32
Where this signal lives in the map if this is a mapped signal
generator  FuncDictionaryInt32, StatusSignalT
The generator for a map
signalName  String
Name of signal
reportOnConstruction  Boolean
Whether to report errors on construction

Type Parameters

T
Generic type of StatusSignal to get

Return Value

StatusSignalT
Status code of the lookup

See Also