This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== AllocRegisters ==== Reserve registers for a device driver === Description === <code>AllocRegisters( deviceno, registercount )</code> This command allocates registers for a device driver. Repeated calls will not reset the registers unless the register count changes. There is no need to de-allocate registers as the system will automatically free registers that are not in use. Up to 150 registers can be allocated for each device, up to 2000 registers total for the ezeio. === Parameters === | ''deviceno'' | Device number (1-40) | | ''registercount'' | Number of registers to allocate (1-150) | === Return value === none === Example usage === <code javascript> AllocRegisters(3, 8); // Allocate eight registers for device 3 SetRegister(3, 1, 1234, INT); // Set register 1 on device 3 to the value 1234 </code> ezeio2/scriptref/allocregisters.txt Last modified: 2023-07-27 17:17by andreh Log In