I am using ADSP BF548 Ez Kit Lite Board using CCES.
I want to perform a simple loopback, to test the SPORT3 interface in I2S mode.
As per the Hardware Reference Manual of BF548, pg: 24-8 "A SPORT can receive and transmit simultaneously for full duplex operation."
In CCES, the driver file adi_sport_bf5xx.c provides the API adi_sport_Open(), to open a device and provides the handler for further operation on the device. There is a parameter, eDirection which implies the Direction of the SPORT device. Since its an enum, the values defined are ADI_SPORT_DIR_TX and ADI_SPORT_DIR_RX. Well if I am to use SPORT3 in loopback mode, how should I configure the SPORT using this API. I am confused. Please guide.
For I2S mode, here are the planned connections for loopback:
TSCLK3 -> RSCLK3
TFS3 -> RFS3
DT3PRI -> DR3PRI