SWRU543B January 2019 – June 2025 CC3230S , CC3230SF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
Configure the serializer in a specified mode.
Parameters:
ulBasethe base address of the I2S module
ulDataLinethe data line (serilizer) to be configured
ulSerModethe required serializer mode
ulInActStatesets the inactive state of the data lineThis function configures and enables the serializer associated with the given data line in specified mode.
The parameter
ulDataLine
selects the data line to be configured, and can be one of the following:
-I2S_DATA_LINE_0 -I2S_DATA_LINE_1The parameter
ulSerMode
can be one of the following:
-I2S_SER_MODE_TX -I2S_SER_MODE_RX
-I2S_SER_MODE_DISABLEThe parameter
ulInActState
can be one of the following:
-I2S_INACT_TRI_STATE -I2S_INACT_LOW_LEVEL
-I2S_INACT_LOW_HIGHReturns:
Returns receive (RX) FIFO status.
References:
ulDataLine
parameter
#define I2S_DATA_LINE_0 0x00000001 #define
I2S_DATA_LINE_1 0x00000002
ulSerMode
parameter
#define I2S_SER_MODE_TX 0x00000001 #define
I2S_SER_MODE_RX 0x00000002 #define I2S_SER_MODE_DISABLE
0x00000000
ulInActState
parameter
#define I2S_INACT_TRI_STATE 0x00000000 #define
I2S_INACT_LOW_LEVEL 0x00000008 #define I2S_INACT_HIGH_LEVEL
0x0000000C