580 #ifndef ti_drivers_I2S__include 581 #define ti_drivers_I2S__include 607 #define I2S_ALL_TRANSACTIONS_SUCCESS (0x0001U) 615 #define I2S_TRANSACTION_SUCCESS (0x0002U) 624 #define I2S_TIMEOUT_ERROR (0x0100U) 633 #define I2S_BUS_ERROR (0x0200U) 642 #define I2S_WS_ERROR (0x0400U) 651 #define I2S_PTR_READ_ERROR (0x0800U) 660 #define I2S_PTR_WRITE_ERROR (0x1000U) 1103 extern void I2S_close(I2S_Handle handle);
ADC_Params params
Definition: Driver_Init.h:11
I2S_Handle I2S_open(uint_least8_t index, I2S_Params *params)
Function to initialize a given I2S peripheral specified by the particular index value. The parameter specifies which mode the I2S will operate.
I2S_MemoryLength
I2S slot memory length setting.
Definition: I2S.h:753
void * object
Definition: I2S.h:676
Only channel 2 is activated.
Definition: I2S.h:897
size_t bytesTransferred
Definition: I2S.h:699
const I2S_Params I2S_defaultParams
Default I2S_Params structure.
bool isMSBFirst
Definition: I2S.h:957
uint8_t beforeWordPadding
Definition: I2S.h:979
void(* I2S_Callback)(I2S_Handle handle, int_fast16_t status, I2S_Transaction *transactionPtr)
The definition of a user-callback function used by the I2S driver.
Definition: I2S.h:723
void(* I2S_RegUpdate)(uint32_t ui32Base, uint32_t ui32NextPointer)
The definition of a function used to set the I2S register.
Definition: I2S.h:733
size_t untransferredBytes
Definition: I2S.h:701
void I2S_setWriteQueueHead(I2S_Handle handle, I2S_Transaction *transaction)
Function to set the first write-transaction to consider.
I2S_DataInterfaceUse SD1Use
Definition: I2S.h:1014
uint32_t samplingFrequency
Definition: I2S.h:1065
I2S Global configuration.
Definition: I2S.h:673
I2S_DataInterfaceUse
I2S data interface configuration.
Definition: I2S.h:836
No channel activated.
Definition: I2S.h:879
I2S_PhaseType
I2S phase setting.
Definition: I2S.h:809
I2S_Role
I2S controller / target selection.
Definition: I2S.h:769
uint16_t fixedBufferLength
Definition: I2S.h:1045
Sampling on falling edges.
Definition: I2S.h:790
void I2S_init(void)
Function to initializes the I2S module.
void I2S_startClocks(I2S_Handle handle)
Start the WS, SCK and CCLK clocks.
uint16_t numberOfCompletions
Definition: I2S.h:703
bool isDMAUnused
Definition: I2S.h:968
Sampling on rising edges.
Definition: I2S.h:798
I2S_MemoryLength memorySlotLength
Definition: I2S.h:973
I2S_SamplingEdge samplingEdge
Definition: I2S.h:998
List_Elem queueElement
Definition: I2S.h:693
void I2S_startWrite(I2S_Handle handle)
Start write transactions.
I2S_Config * I2S_Handle
A handle that is returned from a I2S_open() call.
Definition: I2S.h:685
void I2S_Transaction_init(I2S_Transaction *transaction)
Initialize an I2S_Transaction struct to known state.
I2S_ChannelConfig
Channels used selection.
Definition: I2S.h:870
void I2S_setReadQueueHead(I2S_Handle handle, I2S_Transaction *transaction)
Function to set the first read-transaction to consider.
I2S_SamplingEdge
I2S sampling setting.
Definition: I2S.h:782
bool invertWS
Definition: I2S.h:947
I2S_PhaseType phaseType
Definition: I2S.h:1037
uint16_t startUpDelay
Definition: I2S.h:1048
I2S_DataInterfaceUse SD0Use
Definition: I2S.h:1006
void I2S_stopClocks(I2S_Handle handle)
Stops the WS, SCK and CCLK clocks.
void(* I2S_StopInterface)(I2S_Handle handle)
The definition of a function used to stop an I2S interface.
Definition: I2S.h:741
bool trueI2sFormat
Definition: I2S.h:940
I2S_Callback errorCallback
Definition: I2S.h:1080
I2S_Role moduleRole
Definition: I2S.h:993
void I2S_stopWrite(I2S_Handle handle)
Stop write transactions.
Channels 1 and 2 are activated.
Definition: I2S.h:905
I2S_ChannelConfig SD1Channels
Definition: I2S.h:1032
void I2S_stopRead(I2S_Handle handle)
Stop read transactions.
uintptr_t arg
Definition: I2S.h:705
size_t bufSize
Definition: I2S.h:697
void * custom
Definition: I2S.h:1083
void I2S_Params_init(I2S_Params *params)
Function to initialize the I2S_Params struct to its defaults.
void I2S_startRead(I2S_Handle handle)
Start read transactions.
Dual phase.
Definition: I2S.h:826
I2S_Callback writeCallback
Definition: I2S.h:1077
uint8_t bitsPerWord
Definition: I2S.h:988
Only channel 1 is activated.
Definition: I2S.h:888
I2S_Callback readCallback
Definition: I2S.h:1071
I2S transaction descriptor.
Definition: I2S.h:690
void const * hwAttrs
Definition: I2S.h:679
void I2S_close(I2S_Handle handle)
Function to close a given I2S peripheral specified by the I2S handle.
Single phase.
Definition: I2S.h:817
uint8_t afterWordPadding
Definition: I2S.h:985
I2S_ChannelConfig SD0Channels
Definition: I2S.h:1023
uint16_t CCLKDivider
Definition: I2S.h:1055
Linked List interface for use in drivers.
Basic I2S Parameters.
Definition: I2S.h:927
void * bufPtr
Definition: I2S.h:695