short Byte* GetVortexClockDivisor(
Chip chip,
ClockDivisor nDivisor
);
short Byte* GetApexClockDivisor(
Chip chip,
ClockDivisor nDivisor
);
Description
Gets the current value of a clock divisor for a chip.
Parameters
chip
The ID the C Code generated for the chip. This will be something like chipName or an_chipName, depending on the name of the chip and the generation options.
nDivisor
A clock divisor ID generated by the C Code. The possible values for an OkikaVortex chip are:
VortexClockDivisor_PreScale
VortexClockDivisor_Clock0
VortexClockDivisor_Clock1
VortexClockDivisor_Clock2
VortexClockDivisor_Clock3
VortexClockDivisor_Chop1
VortexClockDivisor_Chop2
Possible OkikaApex chip values are:
ApexClockDivisor_ClockSys1Sys2Flag
ApexClockDivisor_ClockSys2
ApexClockDivisor_ClockSys1
ApexClockDivisor_Clock0
ApexClockDivisor_Clock1
ApexClockDivisor_Clock2
ApexClockDivisor_Clock3
ApexClockDivisor_Clock4DelayClock4
ApexClockDivisor_Clock5
ApexClockDivisor_Clock5DelayClock5
Return Value
The value of the clock divisor.