This function writes to registers in the target.
virtual CADIReturn_t CADI::CADIRegWrite(uint32_t regCount,
uint8_t doSideEffects) = 0;
- is the requested number of registers (and consequently
the size of the reg array).
- is an array of
CADIReg_t structs each holding
the some attributes and an array of bytes containing the contents of an individual
register. The number of required bytes for each register is available from the
CADIInfo_t struct. The number of registers is returned by the
- on return, is the number of registers that are actually
written. Any value set on input is ignored.
- If set to
true, this parameter
informs the target that it must perform side effects on a write
access. Such side effects might be, for example, triggering an interrupt.
If it is set to
false, the target must decide
when to ignore this parameter. For some cases it is not possible
to write a register without doing a side effect such as manipulating
a register that influences a hardware accelerator's behavior and changes
the computed results.