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 Voltage
  • SPI Initialization
  • SPI Configuration
  • SPI Transfer
  1. User Guide
  2. Protocols and Interfaces
  3. Bridge 1.1 API

Bridge 1.1 API - SPI Commands

PreviousBridge 1.1 API - I2C CommandsNextBridge 1.1 API - UART Commands

Last updated 4 days ago

Set Voltage

See .

SPI Initialization

  • Command Request:

    {
      "transaction_id": "1",
      "command": "spi_init",
      "params": {
        {
          "mode": "<0..3>",
          "clockFrequencyInKHz": "<Unsigned Integer>",
          "bitOrder": "<MSB|LSB>",
          "bitsPerTransfer": "<8|16>",
          "chipSelect": "<0..3>",
          "chipSelectPol": "<0,1>"
        }
      }
    }
  • Responses:

    • Immediate Promise Response:

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

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

SPI Configuration

  • Command Request:

    {
      "transaction_id": "1",
      "command": "spi_config",
      "params": {
        {
          "mode": "<0..3>",
          "clockFrequencyInKHz": "<Unsigned Integer>",
          "bitOrder": "<MSB|LSB>",
          "bitsPerTransfer": "<8|16>",
          "chipSelect": "<0..3>",
          "chipSelectPol": "<0,1>"
        }
      }
    }
  • Responses:

    • Immediate Promise Response:

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

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

SPI Transfer

  • Command Request:

    {
      "transaction_id": "1",
      "command": "spi_transfer",
      "params": {
        "bytesToRead": "<Unsigned Integer>",
        "writeBuffer": "<Hex String (e.g. DEADBEEF)>"
        }
      }
    }
  • Responses:

    • Immediate Promise Response:

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

      {
        "transaction_id": "1",
        "status": "success",
        "is_promise": false,
        "data": {
          "is_response_to": "spi_transfer",
          "status": "success",
          "payload_length": <Unsigned Integer>,
          "data": <Array of 2-Byte Hex String (e.g. "DE", "AD", "BE", "EF")>}
        }
      }
Set Bus Voltage