SetRegister
Set the value of a register
Description
SetRegister( deviceno, registerno, {Fixed,Float,_}:value, type=INT )
Directly sets the value of a register.
Parameters
deviceno | Device number (1-40) |
registerno | Which register to set |
value | The new value |
type | One of INT, UINT, FLOAT or NULL |
Return value
none
Example usage
AllocateRegisters(3, 8); // Allocate eight registers for device 3 SetRegister(3, 1, 1234, INT); // Set register 1 on device 3 to the value 1234