blob: 50cf0247b72ff967313a016cb4cb1a1ecb546f15 [file] [log] [blame]
<?xml version="1.0"?>
<root>
<include>
<name>power_tools.xml</name>
</include>
<map>
<name>onoff</name>
<doc>assertive high map for on/off</doc>
<params on="1" off="0"></params>
</map>
<map>
<name>onoff_i</name>
<doc>assertive low map for on/off</doc>
<params on="0" off="1"></params>
</map>
<map>
<name>ina231_cfg</name>
<doc>quick configuration values for ina 231</doc>
<!--
low_power, and regular_power settings configure:
- adcs to continuous mode for shunt & bus voltage
- bus voltage range to 28V
- hardware averaging with 64 samples per value
- 0.588 ms shunt voltage conversion time
- 0.332 ms bus voltage conversion time
-> ~58 ms total converstion time for brand new reading.
no_hw_avg changes config by:
- collecting only one sample
- using 1.1 ms shunt voltage conversion time (default)
- using 1.1 ms bus voltage conversion time (default)
-->
<params default="0x4127"
low_power="0x469f"
low_power_no_hw_avg="0x4127"
regular_power="0x469f"
regular_power_no_hw_avg="0x4127">
</params>
</map>
<map>
<name>ina219_cfg</name>
<doc>quick configuration values for ina 219</doc>
<!--
low_power, and regular_power settings configure:
- adcs to continuous mode for shunt & bus voltage
- bus voltage range to 26V
- hardware averaging with 64 samples per value for shunt voltage
- hardware averaging with 32 samples per value for bus voltage
-> ~51 ms total conversion time for brand new reading.
regular_power configures in addition:
- shunt-voltage resolution to +- 320mV
low_power configures in addition:
- shunt-voltage resolution to +- 40mV
no_hw_avg changes config by:
- collecting only one sample
- using 0.532 ms shunt voltage conversion time (default)
- using 0.532 ms bus voltage conversion time (default)
-->
<params default="0x399f"
low_power="0x26f7"
low_power_no_hw_avg="0x219f"
regular_power="0x3ef7"
regular_power_no_hw_avg="0x399f">
</params>
</map>
<map>
<name>ina3221_cfg</name>
<doc>quick configuration values for ina 3221</doc>
<!--
low_power, and regular_power settings configure:
- all channels to be on
- adcs to continuous mode for shunt & bus voltage
- bus voltage range to 26V
- shunt & bus voltage conversion time to 2.2ms
- hardware averaging with 4 samples per value
-> ~52 ms total conversion time for brand new reading.
no_hw_avg changes config by:
- collecting only one sample
- using 1.1 ms shunt voltage conversion time (default)
- using 1.1 ms bus voltage conversion time (default)
-->
<params default="0x7127"
low_power="0x736f"
low_power_no_hw_avg="0x7127"
regular_power="0x736f"
regular_power_no_hw_avg="0x7127">
</params>
</map>
<map>
<name>yesno</name>
<doc>assertive high map for yes/no</doc>
<params yes="1" no="0"></params>
</map>
<map>
<name>yesno_i</name>
<doc>assertive low map for yes/no</doc>
<params yes="0" no="1"></params>
</map>
<map>
<name>press</name>
<doc>map for press and release of buttons</doc>
<params press="0" release="1"></params>
</map>
<map>
<name>uart_parity</name>
<doc>Parity of uart line properties</doc>
<params none="0" odd="1" even="2"></params>
</map>
<map>
<name>uart_sbits</name>
<doc>Number of stop bits for uart line properties</doc>
<params one="0" oneandhalf="1" two="2"></params>
</map>
<map>
<name>uart_bits</name>
<doc>Number of data bits for uart line properties</doc>
<params five="5" six="6" seven="7" eight="8"></params>
</map>
<map>
<name>print</name>
<doc>debug print map</doc>
<params print="0"></params>
</map>
<map>
<name>na</name>
<doc>not applicable map</doc>
<params not_applicable="0"></params>
</map>
<control>
<name>sleep</name>
<doc>Forces a delay in seconds, according to the parameter</doc>
<params cmd="set" interface="servo" drv="sleep" input_type="float"/>
</control>
<control>
<name>loglevel</name>
<doc>The current log level of the root logger.</doc>
<params drv="loglevel" interface="servo" input_type="str" />
</control>
<control>
<name>servod_pid</name>
<doc>The process id of the servod instance.</doc>
<params drv="servo_metadata" subtype="pid" interface="servo" />
</control>
<control>
<name>config_files</name>
<doc>A comma separated list of config files used to invoke this server.</doc>
<params drv="servo_metadata" subtype="config_files" interface="servo" />
</control>
<control>
<name>serialname</name>
<doc>The serial number of servo being used.</doc>
<params drv="servo_metadata" subtype="serial" interface="servo" />
</control>
<control>
<name>servo_type</name>
<doc>What type of servo is being used.</doc>
<params drv="servo_metadata" subtype="type" interface="servo" />
</control>
</root>