EasyManua.ls Logo

Cypress EX-USB FX3 - Page 65

Cypress EX-USB FX3
192 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FX3 Programmers Manual, Doc. # 001-64707 Rev. *C 65
FX3 Firmware
I
2
C APIs
These include APIs to
Initialize/De-initialize the I
2
C
Configure the I
2
C
Setup the I
2
C for block data transfer
Read/Write bytes from/to the I
2
C
Send a command to the I
2
C
5.2.3.3 I2S
The I2S interface must be initialized and configured before it can be used. The interface can be used
to send stereo or mono audio output on the I2S link.
DMA and register modes of access are provided.
I2S APIs
These include APIs to
Initialize/de-initialize the I2S
Configure the I2S
Transmit bytes on the interface (register mode)
Control the I2S master (mute the audio)
5.2.3.4 GPIO
A set of APIs are provided by the serial interface driver to program and use the GPIO. The GPIO
functionality provided on the FX3 is a serial interface that does not require DMA.
Two modes of GPIO pins are available with FX3 devices - Simple and Complex GPIOs. Simple
GPIO provides software controlled and observable input and output capability only. Complex GPIO’s
contain a timer and supports a variety of timed behaviors such as pulsing, time measurements, and
one-shot.
GPIO APIs
These include APIs to
Initialize/de-initialize the GPIO
Configure a pin as a simple GPIO
Configure a pin as a complex GPIO
Get or set the value of a simple GPIO pin
Register an interrupt handler for a GPIO
Get the threshold value of a GPIO pin
5.2.3.5 SPI
The SPI has an initialization sequence that must be first completed for the SPI interface to be
available for data transfer. The SPI has one producer and one consumer socket for data transfers. A
DMA channel must be created for block transfers using the SPI.
A direct register mode of data transfer is provided. This may be used to read/write a sequence of
bytes from/to the SPI interface.
SPI APIs

Table of Contents