| |||
| Home > RVISS Reference > Communicating with the core > ARMulif_SetConfig | |||
This function changes the config value of the modeled processor. The config value represents the state of the configuration pins on the ARM core.
void ARMulif_SetConfig(RDI_ModuleDesc *mdesc, ARMwordbitsToChange, ARMwordnewValue)
where:
mdescis the handle for the core.
bitsToChangeis a bitmask of the config bits to change.
newValuecontains the new values of the bits to change.
If a bit is cleared in it
must not be set in bitsToChange.
For example, to set bit[1] and clear bit[0]:newValue
bitsToChange0x03 (0b00000011)
newValue0x02 (0b00000010)
oldConfig = ARMulif_SetConfig(state, 0x00000001, 0x00000001); //This sets bit[0] to value 1 oldConfig = ARMulif_SetConfig(state, 0x00000002, 0x00000001); //This sets bit[0] to value 0 - note that bit[0] is unaffected.
You can use the following call to obtain the current settings of the configuration pins, without modifying them:
currentConfig = ARMulif_SetConfig(state, 0, 0)