123
Fork of LG by
Diff: device.xml
- Revision:
- 161:efd949e8d536
- Child:
- 166:c3c0b8a90d81
diff -r 6170df6f5a5c -r efd949e8d536 device.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/device.xml Sun May 15 19:12:12 2016 +0000 @@ -0,0 +1,361 @@ +<?xml version="1.0" encoding="utf-8" ?> +<root> + <structure name="device" typedef="Device"> + <structure name="sensor" typedef="DeviceSensor"> + <structure name="settings" typedef="DeviceSensorSettings"> + <variable name="id" typedef="uint16_t" value="0"/> + <variable name="block" typedef="uint16_t" value="0"/> + </structure> + </structure> + + <structure name="lightUp" typedef="DeviceLightUp"> + <structure name="settings" typedef="DeviceLightUpSettings"> + <variable name="sequence" typedef="uint16_t" value="0x0055"/> + </structure> + <structure name="state" typedef="DeviceLightUpState"> + <variable name="enabled" typedef="uint8_t" value="1"/> + <variable name="sequence" typedef="uint16_t" value="0x0055"/> + </structure> + </structure> + + <structure name="dither" typedef="DeviceDither"> + <structure name="pulse" typedef="DeviceDitherPulse"> + <structure name="settings" typedef="DeviceDitherPulseSettings"> + <variable name="rise" typedef="uint32_t" value="0"/> + <variable name="fall" typedef="uint32_t" value="0"/> + </structure> + + <structure name="state" typedef="DeviceDitherPulseState"> + <variable name="rise" typedef="uint32_t" value="0"/> + <variable name="fall" typedef="uint32_t" value="0"/> + <variable name="counter" typedef="uint32_t" value="0"/> + </structure> + </structure> + + <structure name="noise" typedef="DeviceDitherNoise"> + <structure name="settings" typedef="DeviceDitherNoiseSettings"> + <variable name="enabled" typedef="uint8_t" value="1"/> + <variable name="period" typedef="uint32_t" value="0"/> + <variable name="range" typedef="uint32_t" value="0"/> + <variable name="phase" typedef="uint32_t" value="0"/> + </structure> + + <structure name="state" typedef="DeviceDitherNoiseState"> + <variable name="enabled" typedef="uint8_t" value="1"/> + </structure> + </structure> + + <structure name="cycle" typedef="DeviceDitherCycle"> + <structure name="settings" typedef="DeviceDitherCycleSettings"> + <variable name="enabled" typedef="uint8_t" value="1"/> + </structure> + + <structure name="state" typedef="DeviceDitherCycleState"> + <variable name="enabled" typedef="uint8_t" value="1"/> + <variable name="pin1" typedef="uint8_t" value="0"/> + <variable name="pin2" typedef="uint8_t" value="0"/> + </structure> + </structure> + + <structure name="detector" typedef="DeviceDitherPhaseDetector"> + <structure name="settings" typedef="DeviceDitherPhaseDetectorSettings"> + <variable name="offset" typedef="uint8_t" value="0"/> + <variable name="weight[0]" typedef="uint8_t" value="-1"/> + <variable name="weight[1]" typedef="uint8_t" value="-1"/> + <variable name="weight[2]" typedef="uint8_t" value="-1"/> + <variable name="weight[3]" typedef="uint8_t" value="-1"/> + <variable name="weight[4]" typedef="uint8_t" value="-1"/> + <variable name="weight[5]" typedef="uint8_t" value="-1"/> + <variable name="weight[6]" typedef="uint8_t" value="-1"/> + <variable name="weight[7]" typedef="uint8_t" value="-1"/> + + <variable name="weight[8]" typedef="uint8_t" value="1"/> + <variable name="weight[9]" typedef="uint8_t" value="1"/> + <variable name="weight[10]" typedef="uint8_t" value="1"/> + <variable name="weight[11]" typedef="uint8_t" value="1"/> + <variable name="weight[12]" typedef="uint8_t" value="1"/> + <variable name="weight[13]" typedef="uint8_t" value="1"/> + <variable name="weight[14]" typedef="uint8_t" value="1"/> + <variable name="weight[15]" typedef="uint8_t" value="1"/> + + <variable name="weight[16]" typedef="uint8_t" value="1"/> + <variable name="weight[17]" typedef="uint8_t" value="1"/> + <variable name="weight[18]" typedef="uint8_t" value="1"/> + <variable name="weight[19]" typedef="uint8_t" value="1"/> + <variable name="weight[20]" typedef="uint8_t" value="1"/> + <variable name="weight[21]" typedef="uint8_t" value="1"/> + <variable name="weight[22]" typedef="uint8_t" value="1"/> + <variable name="weight[23]" typedef="uint8_t" value="1"/> + + <variable name="weight[24]" typedef="uint8_t" value="-1"/> + <variable name="weight[25]" typedef="uint8_t" value="-1"/> + <variable name="weight[26]" typedef="uint8_t" value="-1"/> + <variable name="weight[27]" typedef="uint8_t" value="-1"/> + <variable name="weight[28]" typedef="uint8_t" value="-1"/> + <variable name="weight[29]" typedef="uint8_t" value="-1"/> + <variable name="weight[30]" typedef="uint8_t" value="-1"/> + <variable name="weight[31]" typedef="uint8_t" value="-1"/> + </structure> + <structure name="state" typedef="DeviceDitherPhaseDetectorState"> + <variable name="error" typedef="uint32_t" value="0"/> + </structure> + </structure> + + <structure name="oscillation" typedef="DeviceDitherOscillationFrequencyRegulator"> + <structure name="settings" typedef="DeviceDitherOscillationFrequencyRegulatorSettings"> + <variable name="enabled" typedef="uint8_t" value="1"/> + <variable name="reference" typedef="uint32_t" value="1"/> + <variable name="scale" typedef="uint32_t" value="1"/> + </structure> + + <structure name="state" typedef="DeviceDitherOscillationFrequencyRegulatorState"> + <variable name="enabled" typedef="uint8_t" value="1"/> + <variable name="reference" typedef="uint32_t" value="1"/> + <variable name="scale" typedef="uint32_t" value="1"/> + <variable name="error" typedef="uint32_t" value="0"/> + </structure> + </structure> + + <structure name="carrier" typedef="DeviceDitherCarrierFrequencyRegulator"> + <structure name="settings" typedef="DeviceDitherCarrierFrequencyRegulatorSettings"> + <variable name="enabled" typedef="uint8_t" value="1"/> + <variable name="reference" typedef="uint32_t" value="1"/> + <variable name="scale" typedef="uint32_t" value="1"/> + </structure> + + <structure name="state" typedef="DeviceDitherCarrierFrequencyRegulatorState"> + <variable name="enabled" typedef="uint8_t" value="1"/> + <variable name="reference" typedef="uint32_t" value="1"/> + <variable name="scale" typedef="uint32_t" value="1"/> + <variable name="error" typedef="uint32_t" value="0"/> + </structure> + </structure> + </structure> + + <structure name="dac" typedef="DeviceDAC"> + <structure name="settings" typedef="DeviceDACSettings"> + <variable name="reference" typedef="uint32_t" value="150"/> + <variable name="resolution" typedef="uint32_t" value="150"/> + <variable name="unit" typedef="uint32_t" value="150"/> + <variable name="code[0]" typedef="uint32_t" value="0"/> + <variable name="code[1]" typedef="uint32_t" value="0"/> + <variable name="out[0]" typedef="uint32_t" value="0"/> + <variable name="out[1]" typedef="uint32_t" value="0"/> + </structure> + <structure name="state" typedef="DeviceDACState"> + <variable name="code[0]" typedef="uint32_t" value="0"/> + <variable name="code[1]" typedef="uint32_t" value="0"/> + <variable name="out[0]" typedef="uint32_t" value="0"/> + <variable name="out[1]" typedef="uint32_t" value="0"/> + </structure> + </structure> + + <structure name="isacs" typedef="DeviceISACS"> + <structure name="potentiometers" typedef="DeviceISACSPotentiometers"> + <structure name="settings" typedef="DeviceISACSPotentiometersSettings"> + <variable name="a" typedef="uint32_t" value="150"/> + <variable name="b" typedef="uint32_t" value="150"/> + </structure> + <structure name="state" typedef="DeviceISACSPotentiometersState"> + <variable name="a" typedef="uint32_t" value="150"/> + <variable name="b" typedef="uint32_t" value="150"/> + </structure> + </structure> + + <structure name="regulator" typedef="DeviceISACSRegulator"> + <structure name="settings" typedef="DeviceISACSRegulatorSettings"> + <variable name="enabled" typedef="uint8_t" value="1"/> + + <structure name="start" typedef="DeviceISACSRegulatorConditionSettings"> + <variable name="reference" typedef="uint32_t" value="1"/> + <variable name="scale" typedef="uint32_t" value="1"/> + </structure> + + <structure name="regular" typedef="DeviceISACSRegulatorConditionSettings"> + <variable name="reference" typedef="uint32_t" value="1"/> + <variable name="scale" typedef="uint32_t" value="1"/> + </structure> + + <structure name="reset" typedef="DeviceISACSRegulatorConditionSettings"> + <variable name="reference" typedef="uint32_t" value="1"/> + <variable name="scale" typedef="uint32_t" value="1"/> + </structure> + </structure> + + <structure name="state" typedef="DeviceISACSRegulatorState"> + <variable name="enabled" typedef="uint8_t" value="1"/> + <variable name="reference" typedef="uint32_t" value="1"/> + <variable name="scale" typedef="uint32_t" value="1"/> + <variable name="error" typedef="uint32_t" value="0"/> + </structure> + </structure> + </structure> + + <structure name="user" typedef="DeviceUserProtocol"> + <variable name="address" typedef="uint16_t" value="0"/> + </structure> + + <structure name="plcs" typedef="DevicePathLengthControlSystem"> + <structure name="modulator" typedef="DevicePathLengthControlModulator"> + <structure name="settings" typedef="DevicePathLengthControlModulatorSettings"> + <variable name="enabled" typedef="uint8_t" value="1"/> + </structure> + + <structure name="state" typedef="DevicePathLengthControlModulatorState"> + <variable name="enabled" typedef="uint8_t" value="1"/> + </structure> + </structure> + + <structure name="amplifier" typedef="DevicePathLengthControlAmplifier"> + <structure name="settings" typedef="DevicePathLengthControlAmplifierSettings"> + <variable name="reference" typedef="uint32_t" value="0"/> + <variable name="gain" typedef="uint32_t" value="0"/> + </structure> + </structure> + + <structure name="reset" typedef="DevicePathLengthControlReset"> + <structure name="settings" typedef="DevicePathLengthControlResetSettings"> + <structure name="cooling" typedef="DevicePathLengthControlResetConditionSettings"> + <structure name="delay" typedef="DevicePathLengthControlResetDelaySettings"> + <variable name="center" typedef="uint32_t" value="0"/> + <variable name="slope" typedef="uint32_t" value="0"/> + </structure> + + <structure name="level" typedef="DevicePathLengthControlResetLevelSettings"> + <variable name="center" typedef="uint32_t" value="0"/> + <variable name="slope" typedef="uint32_t" value="0"/> + </structure> + </structure> + + <structure name="heating" typedef="DevicePathLengthControlResetConditionSettings"> + <structure name="delay" typedef="DevicePathLengthControlResetDelaySettings"> + <variable name="center" typedef="uint32_t" value="0"/> + <variable name="slope" typedef="uint32_t" value="0"/> + </structure> + + <structure name="level" typedef="DevicePathLengthControlResetLevelSettings"> + <variable name="center" typedef="uint32_t" value="0"/> + <variable name="slope" typedef="uint32_t" value="0"/> + </structure> + </structure> + </structure> + + <structure name="state" typedef="DevicePathLengthControlResetState"> + <variable name="delay" typedef="uint32_t" value="0"/> + <variable name="level" typedef="uint32_t" value="0"/> + </structure> + </structure> + + <structure name="regulator" typedef="DevicePathLengthControlRegulator"> + <structure name="settings" typedef="DevicePathLengthControlRegulatorSettings"> + <variable name="enabled" typedef="uint8_t" value="1"/> + <variable name="reference" typedef="uint32_t" value="1"/> + <variable name="scale" typedef="uint32_t" value="1"/> + </structure> + + <structure name="state" typedef="DevicePathLengthControlRegulatorState"> + <variable name="enabled" typedef="uint8_t" value="1"/> + <variable name="reference" typedef="uint32_t" value="1"/> + <variable name="scale" typedef="uint32_t" value="1"/> + <variable name="error" typedef="uint32_t" value="1"/> + </structure> + </structure> + </structure> + + <structure name="controller" typedef="DeviceController"> + <variable name="chip" typedef="uint32_t" value="(1768 lsh 16) | 100"/> + + <structure name="flash" typedef="DeviceFlash"> + <structure name="settings" typedef="DeviceFlashSettings"> + <variable name="hashSector" typedef="uint16_t" value="22"/> + <variable name="dataSector" typedef="uint16_t" value="23"/> + </structure> + </structure> + + <structure name="uart[0]" typedef="DeviceUART"> + <structure name="settings" typedef="DeviceUARTSettings"> + <variable name="baudRate" typedef="uint32_t" value="921600"/> + </structure> + + <structure name="state" typedef="DeviceUARTState"> + <variable name="LCR" typedef="uint8_t" value="0"/> + <variable name="DLM" typedef="uint8_t" value="0"/> + <variable name="DLL" typedef="uint8_t" value="0"/> + <variable name="FCR" typedef="uint8_t" value="0"/> + </structure> + </structure> + + <structure name="uart[1]" typedef="DeviceUART"> + <structure name="settings" typedef="DeviceUARTSettings"> + <variable name="baudRate" typedef="uint32_t" value="38400"/> + </structure> + + <structure name="state" typedef="DeviceUARTState"> + <variable name="LCR" typedef="uint8_t" value="0"/> + <variable name="DLM" typedef="uint8_t" value="0"/> + <variable name="DLL" typedef="uint8_t" value="0"/> + <variable name="FCR" typedef="uint8_t" value="0"/> + </structure> + </structure> + + <structure name="timer[0]" typedef="DeviceTimer"> + <structure name="settings" typedef="DeviceTimerSettings"> + <variable name="match" typedef="uint32_t" value="0"/> + </structure> + + <structure name="state" typedef="DeviceTimerState"> + <variable name="MR0" typedef="uint32_t" value="0"/> + <variable name="MCR" typedef="uint32_t" value="0"/> + <variable name="TCR" typedef="uint32_t" value="0"/> + </structure> + </structure> + + <structure name="SSP" typedef="DeviceSSP"> + <variable name="ADC[0]" typedef="uint32_t" value="0"/> + <variable name="ADC[1]" typedef="uint32_t" value="0"/> + <variable name="ADC[2]" typedef="uint32_t" value="0"/> + <variable name="ADC[3]" typedef="uint32_t" value="0"/> + <variable name="ADC[4]" typedef="uint32_t" value="0"/> + <variable name="DAC[0]" typedef="uint32_t" value="0"/> + <variable name="DAC[1]" typedef="uint32_t" value="0"/> + </structure> + + <structure name="I2C" typedef="DeviceI2C"> + <structure name="settings" typedef="DeviceI2CSettings"> + <variable name="trigger" typedef="uint32_t" value="38400"/> + </structure> + + <structure name="state" typedef="DeviceI2CState"> + <variable name="CON0" typedef="uint32_t" value="0"/> + <variable name="buffer[0]" typedef="uint32_t" value="0"/> + <variable name="buffer[1]" typedef="uint32_t" value="0"/> + <variable name="buffer[2]" typedef="uint32_t" value="0"/> + <variable name="buffer[3]" typedef="uint32_t" value="0"/> + <variable name="buffer[4]" typedef="uint32_t" value="0"/> + <variable name="buffer[5]" typedef="uint32_t" value="0"/> + <variable name="position" typedef="uint32_t" value="0"/> + <variable name="counter" typedef="uint32_t" value="0"/> + <variable name="trigger" typedef="uint32_t" value="0"/> + <variable name="enabled" typedef="uint32_t" value="0"/> + </structure> + </structure> + + <structure name="QEI" typedef="DeviceQEI"> + <structure name="settings" typedef="DeviceQEISettings"> + </structure> + + <structure name="state" typedef="DeviceQEIState"> + <variable name="position" typedef="uint32_t" value="0"/> + <variable name="delta" typedef="uint32_t" value="0"/> + </structure> + </structure> + </structure> + </structure> + + <function name="FlashReadAll" result="void"> + </function> + <function name="FlashWriteAll" result="void"> + </function> + <function name="StartLightUp" result="void"> + </function> +</root> \ No newline at end of file