Binho Customer Support
  • Customer Support Portal
  • User Guide
    • Binho Nova
    • Binho Supernova
    • Hardware Comparison Table
    • Safety Notice
    • Compliance & Legal
    • System Requirements
    • Updating Firmware
    • Protocols and Interfaces
      • I3C Common Command Codes
      • Bridge 1.1 API
        • Bridge 1.1 API - Basic I3C Commands
        • Bridge 1.1 API - I3C Common Command Codes
        • Bridge 1.1 API - I2C Commands
        • Bridge 1.1 API - SPI Commands
        • Bridge 1.1 API - UART Commands
        • Bridge 1.1 API - GPIO Commands
  • Getting Started
    • Hardware Setup
      • Binho Nova
      • Binho Supernova
    • Binho Mission Control
      • Overview
      • Download & Installation
      • Interactive Tour
        • App Layout
        • Protocol Activation
        • Command Panel
        • Transaction Log View
      • Updating Binho Mission Control Software
      • Simulators
      • Communication Protocols
        • SPI
        • UART
        • I2C
        • I3C
        • 1-WIRE
        • GPIO
      • Settings
    • Python SDKs
      • SupernovaController
      • Nova SDK
    • C++ SDK
      • Installation
      • Environment Setup
      • Building the C++ SDK Library
      • Building a Project Using the SDK
      • Example Applications
      • Using the Library
    • Software Releases
  • Examples
    • SupernovaController
    • Other Examples
  • Troubleshooting
    • Solving USB Connection Issues on Linux
  • FAQ
    • What is a host adapter?
    • What protocols are supported?
    • Can multiple devices be used at the same time?
    • Where can I find the product datasheet?
    • Is there a GUI available?
    • Is the ADC calibrated?
    • Is the DAC calibrated?
  • Returns & Warranty
    • 90-Day Return Policy
    • 2-Year Warranty
  • Dropping Legacy Terminology
  • Contact Us
  • Orders & Shipping
    • Place an Order
    • Requesting a Quotation
    • Placing a Purchase Order
    • Shipping Policy
    • International Shipping
    • Tax Exemption
    • Discounts
    • Distributors
Powered by GitBook
On this page
  • Set Bus Voltage
  • I2C Set Parameters
  • I2C Read
  • I2C Write
  • I2C Read Using Subaddress
  • I2C Write Using Subaddress
  1. User Guide
  2. Protocols and Interfaces
  3. Bridge 1.1 API

Bridge 1.1 API - I2C Commands

Set Bus Voltage

  • Command Request:

    {
      "transaction_id": "1",
      "command": "i2c_spi_uart_set_bus_voltage",
      "params": {
        "busVoltageInV": "<Float>"
      }
    }
  • Responses:

    • Immediate Promise Response:

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

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": false,
        "data": {
          "is_response_to": "i2c_spi_uart_set_bus_voltage",
          "status": "success"
        }
      }

I2C Set Parameters

  • Command Request:

    {
      "transaction_id": "1",
      "command": "i2c_set_parameters",
      "params": {
        "clockFrequencyInKHz": "<Unsigned Int>"
      }
    }
  • Responses:

    • Immediate Promise Response:

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

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": false,
        "data": {
          "is_response_to": "i2c_set_parameters",
          "status": "success"
        }
      }

I2C Read

  • Command Request:

    {
      "transaction_id": "1",
      "command": "i2c_read",
      "params": {
        "address": "<2-Digit Hexadecimal (E.g. 0A)>",
        "bytesToRead": "<Unsigned Integer>",
        "busVoltageInV": "<Float>"
        }
      }
    }
  • Responses:

    • Immediate Promise Response:

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

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": false,
        "data": {
          "is_response_to": "i2c_read",
          "status": "success",
          "data": <Array of 2-Digit Hex (E.g. ["DE", "AD", "BE", "EF"])>
        }
      }

I2C Write

  • Command Request:

    {
      "transaction_id": "1",
      "command": "i2c_write",
      "params": {
        "address": "<2-Digit Hexadecimal (E.g. 0A)>",
        "writeBuffer": "<Hexadecimal String (E.g. DEADBEEF, A1B3C3D4F5)>",
        "clockFrequencyInKHz": "Unsigned Integer"
      }
    }
  • Responses:

    • Immediate Promise Response:

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

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": false,
        "data": {
          "is_response_to": "i2c_write",
          "status": "success"
        }
      }

I2C Read Using Subaddress

  • Command Request:

    {
      "transaction_id": "1",
      "command": "i2c_read_using_subaddress",
      "params": {
        "address": "<2-Digit Hexadecimal (E.g. 0A)>",
        "subaddress": "<Unsigned Integer (E.g. 0001)>",
        "bytesToRead": "<Unsigned Integer>",
        "busVoltageInV": "<Float>"
        }
      }
    }
  • Responses:

    • Immediate Promise Response:

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

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": false,
        "data": {
          "is_response_to": "i2c_read_using_subaddress",
          "status": "success",
          "data": <Array of 2-Digit Hex (E.g. ["DE", "AD", "BE", "EF"])>
        }
      }

I2C Write Using Subaddress

  • Command Request:

    {
      "transaction_id": "1",
      "command": "i2c_write_using_subaddress",
      "params": {
        "address": "<2-Digit Hexadecimal (E.g. 0A)>",
        "subaddress": "<Unsigned Integer (E.g. 0001)>",
        "writeBuffer": "<Hexadecimal String (E.g. DEADBEEF, A1B3C3D4F5)>",
        "clockFrequencyInKHz": "Unsigned Integer"
      }
    }
  • Responses:

    • Immediate Promise Response:

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

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": false,
        "data": {
          "is_response_to": "i2c_write_using_subaddress",
          "status": "success"
        }
      }
PreviousBridge 1.1 API - I3C Common Command CodesNextBridge 1.1 API - SPI Commands

Last updated 4 days ago