ControlByte GetVortexReconfigControlFlags(
Chip chip
);
ControlByte GetApexReconfigControlFlags(
Chip chip
);
Description
Gets the control byte in 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.
Return Value
A combination of one or more ControlByte flags generated by the C Code. The possible flags for an OkikaVortex 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
Remarks
Using the ANSI C bitwise-AND operator it is possible to test for specific flags in the control byte:
/* Get the bits in the control byte */
ControlByte controlByte = GetReconfigControlFlags(chipName);
/* Do something if the Reset bit is set */
if (controlByte & VortexControlByte_SReset)
{
/* … */
}