nx.js
Classes

ClkrstSession

Represents a session for a PCV module.

Use the openSession() function to create a session.

Methods

getClockRate()

getClockRate(): number

Retrieves the current clock rate of the PCV module.

Returns

number

The current clock rate of the PCV module in Hz.


getPossibleClockRates()

getPossibleClockRates(maxCount): object

Returns a list of possible clock rates for the PCV module.

Parameters

ParameterTypeDefault valueDescription
maxCountnumber20Determines the size of the rates array. Defaults to 20.

Returns

object

An object containing the list of possible clock rates and their type.


setClockRate()

setClockRate(hz): void

Sets the clock rate of the PCV module to the specified Hz value.

Parameters

ParameterTypeDescription
hznumberThe new clock rate to set.

Returns

void

On this page