Bridge 1.1 API - SPI Commands

Set Voltage

See Set Bus Voltage.

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:

  • Responses:

    • Immediate Promise Response:

    • Final Response:

SPI Transfer

  • Command Request:

  • Responses:

    • Immediate Promise Response:

    • Final Response:

Last updated