Example Functions; Figure 13-13. Custom Button Creation Step 2 - Texas Instruments DS90UB95x-Q1EVM Series User Manual

Hide thumbs Also See for DS90UB95x-Q1EVM Series:
Table of Contents

Advertisement

Using ALP and DS90UB95x Profile
Directly interacting with devices either through register modifications or calling device support library
functions can effect the performance and/or functionality of the user interface and may even crash
the ALP Framework application.

13.5.1 Example Functions

The following are Python functions commonly used to interact with FPD-Link devices.
13.5.1.1 Local I2C Reads/Writes
These functions will perform reads and writes only for the I2C assigned to board.devAddr, which by default will
be the detected address for the DS90UB95x-Q1.
board.ReadReg(Register
Address , # of Bytes)
OR board.ReadReg(Register
Address)
board.WriteReg(Register
Address , Data)
board.devAddr = [I2C Address] Assigns I2C address to be used for board.ReadReg and board.WriteReg
28
DS90UB95x-Q1EVM Deserializer User's Guide

Figure 13-13. Custom Button Creation Step 2

WARNING
I2C Read Command
Accepts both hex & decimal inputs
Number of bytes will default to 1 if omitted
Ex: board.ReadReg(0x00) will return the value in Register 0 for the local
device
I2C Write Command
Accepts both hex & decimal inputs
Ex: board.WriteReg(0x01, 0x01) will set Register 0 to have a value of 1
commands
Accepts both hex & decimal inputs
Uses the 8-bit form of the I2C address
Copyright © 2021 Texas Instruments Incorporated
7
SNLU223B – AUGUST 2017 – REVISED APRIL 2021
Submit Document Feedback
www.ti.com
6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ds90ub954-q1evm

Table of Contents