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
Parameter | Type | Default value | Description |
---|---|---|---|
maxCount | number | 20 | Determines the size of the rates array. Defaults to 20 . |
Returns
object
An object containing the list of possible clock rates and their type.
Name | Type |
---|---|
rates | Uint32Array |
type | PcvClockRatesListType |
setClockRate()
setClockRate(hz
): void
Sets the clock rate of the PCV module to the specified Hz value.
Parameters
Parameter | Type | Description |
---|---|---|
hz | number | The new clock rate to set. |
Returns
void