action

Description

Action to execute.

Actions are executed to perform the following regulator operations:

Many actions read from or write to a hardware device. Initially this is the device that contains the regulator operation. However, the device can be changed using the set_device action.

Properties

NameRequiredTypeDescription
commentsnoarray of stringsOne or more comment lines describing this action.
andsee notesarray of actionsAction type and.
compare_presencesee notescompare_presenceAction type compare_presence.
compare_vpdsee notescompare_vpdAction type compare_vpd.
i2c_capture_bytessee notesi2c_capture_bytesAction type i2c_capture_bytes.
i2c_compare_bitsee notesi2c_compare_bitAction type i2c_compare_bit.
i2c_compare_bytesee notesi2c_compare_byteAction type i2c_compare_byte.
i2c_compare_bytessee notesi2c_compare_bytesAction type i2c_compare_bytes.
i2c_write_bitsee notesi2c_write_bitAction type i2c_write_bit.
i2c_write_bytesee notesi2c_write_byteAction type i2c_write_byte.
i2c_write_bytessee notesi2c_write_bytesAction type i2c_write_bytes.
ifsee notesifAction type if.
log_phase_faultsee noteslog_phase_faultAction type log_phase_fault.
notsee notesactionAction type not.
orsee notesarray of actionsAction type or.
pmbus_read_sensorsee notespmbus_read_sensorAction type pmbus_read_sensor.
pmbus_write_vout_commandsee notespmbus_write_vout_commandAction type pmbus_write_vout_command.
run_rulesee notesstringAction type run_rule.
set_devicesee notesstringAction type set_device.

Notes

  • You must specify exactly one action type property, such as "i2c_write_byte" or "run_rule".

Return Value

When the action completes, it returns a true or false value. The documentation for the specified action type describes what value will be returned.

Examples

{
  "comments": [ "Set frequency to 800kHz" ],
  "i2c_write_byte": {
    "register": "0x2C",
    "value": "0x0F"
  }
}

{
  "run_rule": "set_voltage_rule"
}