Skip to content

Bridge 1.1 API - Basic I3C Commands

  • Command Request:

    {
    "transaction_id": "1",
    "command": "i3c_init_bus",
    "params": {
    "busVoltageInV": "3.3"
    }
    }
  • Responses:

    • Immediate Promise Response:

      {
      "transaction_id": "1",
      "status": "success",
      "type": "command_response",
      "is_promise": true,
      "data": {
      "command": "i3c_init_bus"
      }
      }
    • Final Response to Setting Bus Voltage:

      {
      "transaction_id": "1",
      "status": "success",
      "type": "command_response",
      "is_promise": false,
      "data": {
      "is_response_to": "i3c_set_bus_voltage",
      "status": "success",
      "result": {}
      }
      }
    • Final Response to Bus Initialization:

      {
      "transaction_id": "2",
      "status": "success",
      "type": "command_response",
      "is_promise": false,
      "data": {
      "is_response_to": "i3c_init_bus",
      "status": "success",
      "result": {}
      }
      }
    • Response to Get Target Device Table:

      {
      "transaction_id": "3",
      "status": "success",
      "type": "command_response",
      "is_promise": false,
      "data": {
      "is_response_to": "i3c_get_target_device_table",
      "status": "success",
      "result": {
      "payload": [
      {"static_address": "50", "dynamic_address": "08", "bcr": "10", "dcr": "C3", "pid": ["65", "64", "00", "00", "00", "00"]},
      {"static_address": "51", "dynamic_address": "09", "bcr": "10", "dcr": "C3", "pid": ["65", "64", "00", "00", "00", "00"]},
      {"static_address": "52", "dynamic_address": "0A", "bcr": "10", "dcr": "C3", "pid": ["65", "64", "00", "00", "00", "00"]},
      {"static_address": "53", "dynamic_address": "0B", "bcr": "03", "dcr": "63", "pid": ["5A", "00", "1D", "0F", "17", "02"]}
      ]
      }
      }
      }
  • Command Request:

    {
    "transaction_id": "2",
    "command": "i3c_reset_bus",
    "params": {}
    }
  • Responses:

    1. Initial promise indicating the command is queued:

      {
      "transaction_id": "2",
      "status": "success",
      "type": "command_response",
      "is_promise": true,
      "data": {
      "command": "i3c_reset_bus"
      }
      }
    2. Final response indicating the outcome of the reset command:

      {
      "transaction_id": "2",
      "status": "success",
      "type": "command_response",
      "is_promise": false,
      "data": {
      "is_response_to": "i3c_reset_bus",
      "status": "success",
      "result": {}
      }
      }
    3. Response indicating the state of the target device table after reset:

      {
      "transaction_id": "2",
      "status": "success",
      "type": "command_response",
      "is_promise": false,
      "data": {
      "is_response_to": "i3c_get_target_device_table",
      "status": "success",
      "result": {
      "payload": []
      }
      }
      }

Set the bus voltage for the connected device.

  • Command Request:

    {
    "transaction_id": 4,
    "command": "i3c_set_bus_voltage",
    "params": {
    "busVoltageInV": "3.3"
    }
    }
  • Responses:

    Immediate promise response:

    {
    "transaction_id": "4",
    "status": "success",
    "type": "command_response",
    "is_promise": true,
    "data": {
    "command": "i3c_set_bus_voltage"
    }
    }

    Final response:

    {
    "transaction_id": "4",
    "status": "success",
    "type": "command_response",
    "is_promise": false,
    "data": {
    "is_response_to": "i3c_set_bus_voltage",
    "status": "success",
    "result": {}
    }
    }
  • Command Request:

    {
    "transaction_id": "6",
    "command": "i3c_get_target_device_table",
    "params": {}
    }
  • Responses:

    • Immediate Promise Response:

      {
      "transaction_id": "6",
      "status": "success",
      "type": "command_response",
      "is_promise": true,
      "data": {
      "command": "i3c_get_target_device_table"
      }
      }
    • Final Response:

      {
      "transaction_id": "6",
      "status": "success",
      "type": "command_response",
      "is_promise": false,
      "data": {
      "is_response_to": "i3c_get_target_device_table",
      "status": "success",
      "result": {
      "payload": [
      {"static_address": "50", "dynamic_address": "08", "bcr": "10", "dcr": "C3", "pid": ["65", "64", "00", "00", "00", "00"]},
      {"static_address": "51", "dynamic_address": "09", "bcr": "10", "dcr": "C3", "pid": ["65", "64", "00", "00", "00", "00"]},
      {"static_address": "52", "dynamic_address": "0A", "bcr": "10", "dcr": "C3", "pid": ["65", "64", "00", "00", "00", "00"]},
      {"static_address": "53", "dynamic_address": "0B", "bcr": "03", "dcr": "63", "pid": ["5A", "00", "1D", "0F", "17", "02"]}
      ]
      }
      }
      }
  • Command Request:

    {
    "transaction_id": "5",
    "command": "i3c_write_using_subaddress",
    "params": {
    "address": "08",
    "subaddress": "0000",
    "mode": "SDR",
    "pushPullClockFrequencyInMHz": "5",
    "openDrainClockFrequencyInKHz": "2500",
    "writeBuffer": "DEADBEEF"
    }
    }
  • Responses:

    • Immediate Promise:

      {
      "transaction_id": "5",
      "status": "success",
      "type": "command_response",
      "is_promise": true,
      "data": {
      "command": "i3c_write_using_subaddress"
      }
      }
    • Final Response:

      {
      "transaction_id": "5",
      "status": "success",
      "type": "command_response",
      "is_promise": false,
      "data": {
      "is_response_to": "i3c_write_using_subaddress",
      "status": "success",
      "result": {
      "payload": [],
      "payload_size": 0
      }
      }
      }
  • Command Request:

    {
    "transaction_id": "6",
    "command": "i3c_write",
    "params": {
    "address": "08",
    "mode": "SDR",
    "pushPullClockFrequencyInMHz": "5",
    "openDrainClockFrequencyInKHz": "2500",
    "writeBuffer": "0000"
    }
    }
  • Responses:

    • Immediate Promise:

      {
      "transaction_id": "6",
      "status": "success",
      "type": "command_response",
      "is_promise": true,
      "data": {
      "command": "i3c_write"
      }
      }
    • Final Response:

      {
      "transaction_id": "6",
      "status": "success",
      "type": "command_response",
      "is_promise": false,
      "data": {
      "is_response_to": "i3c_write",
      "status": "success",
      "result": {
      "payload": [],
      "payload_size": 0
      }
      }
      }
  • Command Request:

    {
    "transaction_id": 7,
    "command": "i3c_read",
    "params": {
    "address": "08",
    "mode": "SDR",
    "pushPullClockFrequencyInMHz": "5",
    "openDrainClockFrequencyInKHz": "2500",
    "bytesToRead": "5"
    }
    }
  • Responses:

    {
    "transaction_id": "7",
    "status": "success",
    "type": "command_response",
    "is_promise": true,
    "data": {
    "command": "i3c_read"
    }
    }
    {
    "transaction_id": "7",
    "status": "success",
    "type": "command_response",
    "is_promise": false,
    "data": {
    "is_response_to": "i3c_read",
    "status": "success",
    "result": {
    "payload": ["DE", "AD", "BE", "EF", "00"],
    "payload_size": 5
    }
    }
    }
  • Command Request:

    {
    "transaction_id": 8,
    "command": "i3c_read_using_subaddress",
    "params": {
    "address": "08",
    "mode": "SDR",
    "pushPullClockFrequencyInMHz": "5",
    "openDrainClockFrequencyInKHz": "2500",
    "subaddress": "0000",
    "bytesToRead": "5"
    }
    }
  • Responses:

    {
    "transaction_id": "8",
    "status": "success",
    "type": "command_response",
    "is_promise": true,
    "data": {
    "command": "i3c_read_using_subaddress"
    }
    }
    {
    "transaction_id": "8",
    "status": "success",
    "type": "command_response",
    "is_promise": false,
    "data": {
    "is_response_to": "i3c_read_using_subaddress",
    "status": "success",
    "result": {
    "payload": ["DE", "AD", "BE", "EF", "00"],
    "payload_size": 5
    }
    }
    }