void GetVortexResetControlFlags(
Chip chip,
ControlByte nFlags
);
void GetVortexResetControlFlags(
Chip chip,
ControlByte nFlags
);
Description
Sets bits in the control byte of the reconfiguration data for the 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.
nFlags
A combination of one or more ControlByte flags generated by the C Code. The possible flags for a Vortex chip are:
VortexControlByte_Pullups
VortexControlByte_EndExecute
VortexControlByte_SReset
VortexControlByte_ResetAll
The possible flags for an OkikaApex chip are:
ApexControlByte_Pullups
ApexControlByte_EndExecute
ApexControlByte_SReset
ApexControlByte_UpdateClocks
ApexControlByte_ResetAll
Return Value
None
Remarks
Using the ANSI C bitwise-OR operator it is possible to set multiple flags at once. For instance:
SetReconfigControlFlags(
chipName,
VortexControlByte_Pullups | VortexControlByte_EndExecute);
It is also possible to turn flags on and off using a combination of bitwise operators and the GetReconfigControlFlags function. This example turns off the EndExecute bit, turns on the Pullups bit, and keeps the other bits as they were:
SetReconfigControlFlags(
chipName,
VortexControlByte_Pullups |
(~VortexControlByte_EndExecute & GetReconfigControlFlags(chipName));