Skip to content

Instantly share code, notes, and snippets.

@Taneb
Created September 24, 2013 15:46
Show Gist options
  • Save Taneb/6686810 to your computer and use it in GitHub Desktop.
Save Taneb/6686810 to your computer and use it in GitHub Desktop.
SPECIFICATIONS FOR DCPU/THRUSTER INTERFACE DRAFT 0.01
Name: UTI0001 - Universal Thruster Interface
ID: BFEC9661, verson: 0x0001
Manufacture: 0 (n/a)
0: NO_OF_SPEEDS
Writes the number of available speeds to the C register.
1: SET_SPEED
Reads the B register, and attempts to set the thruster to the specified
speed. 0 is stopped, increasing numbers are higher speeds. The unit for
speeds is specified by the thruster and may not necessarily be linear.
The C register is set to one of the following values:
0x0000: speed successfully set.
0x0001: not enough fuel.
0x0002: speed too high for thruster.
0x0003: unknown error.
This does not pause the DCPU but it may take many cycles for the C register
to be updated.
2: CURRENT_TEMP
Write the current temperature to the C register. The unit is specified by the
thruster.
3: RECOMMENDED_MAXIMUM_TEMPERATURE
Write the recommended maximum temperature for operation of the thruster to
the C register. The unit must be the same as is used for CURRENT_TEMP.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment