568 #ifndef ti_drivers_I2S__include 569 #define ti_drivers_I2S__include 595 #define I2S_ALL_TRANSACTIONS_SUCCESS (0x0001U) 603 #define I2S_TRANSACTION_SUCCESS (0x0002U) 611 #define I2S_TIMEOUT_ERROR (0x0100U) 620 #define I2S_BUS_ERROR (0x0200U) 628 #define I2S_WS_ERROR (0x0400U) 637 #define I2S_PTR_READ_ERROR (0x0800U) 646 #define I2S_PTR_WRITE_ERROR (0x1000U) 987 extern void I2S_close(I2S_Handle handle);
I2S_Callback writeCallback
Definition: I2S.h:942
I2S_MemoryLength_
I2S slot memory length setting.
Definition: I2S.h:713
struct I2S_Params_ I2S_Params
Basic I2S Parameters.
void * custom
Definition: I2S.h:948
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.
bool trueI2sFormat
Definition: I2S.h:808
void * bufPtr
Definition: I2S.h:661
enum I2S_ChannelConfig_ I2S_ChannelConfig
Channels used selection.
enum I2S_Role_ I2S_Role
I2S master / slave selection.
const I2S_Params I2S_defaultParams
Default I2S_Params structure.
enum I2S_SamplingEdge_ I2S_SamplingEdge
I2S sampling setting.
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:687
enum I2S_MemoryLength_ I2S_MemoryLength
I2S slot memory length setting.
uint8_t afterWordPadding
Definition: I2S.h:842
uint16_t startUpDelay
Definition: I2S.h:927
I2S_MemoryLength memorySlotLength
Definition: I2S.h:832
Basic I2S Parameters.
Definition: I2S.h:806
enum I2S_DataInterfaceUse_ I2S_DataInterfaceUse
I2S data interface configuration.
void(* I2S_RegUpdate)(uint32_t ui32Base, uint32_t ui32NextPointer)
The definition of a function used to set the I2S register.
Definition: I2S.h:697
I2S_ChannelConfig_
Channels used selection.
Definition: I2S.h:780
void I2S_setWriteQueueHead(I2S_Handle handle, I2S_Transaction *transaction)
Function to set the first write-transaction to consider.
I2S_DataInterfaceUse_
I2S data interface configuration.
Definition: I2S.h:764
I2S_PhaseType_
I2S phase setting.
Definition: I2S.h:752
I2S_ChannelConfig SD0Channels
Definition: I2S.h:870
uint16_t MCLKDivider
Definition: I2S.h:930
size_t untransferredBytes
Definition: I2S.h:667
I2S_DataInterfaceUse SD1Use
Definition: I2S.h:864
void I2S_init(void)
Function to initializes the I2S module.
void I2S_startClocks(I2S_Handle handle)
Start the WS, SCK and MCLK clocks.
void const * hwAttrs
Definition: I2S.h:974
I2S_Role_
I2S master / slave selection.
Definition: I2S.h:728
uint8_t bitsPerWord
Definition: I2S.h:845
void I2S_startWrite(I2S_Handle handle)
Start write transactions.
enum I2S_PhaseType_ I2S_PhaseType
I2S phase setting.
void I2S_Transaction_init(I2S_Transaction *transaction)
Initialize an I2S_Transaction struct to known state.
void I2S_setReadQueueHead(I2S_Handle handle, I2S_Transaction *transaction)
Function to set the first read-transaction to consider.
I2S_DataInterfaceUse SD0Use
Definition: I2S.h:858
uint16_t fixedBufferLength
Definition: I2S.h:923
I2S transaction descriptor.
Definition: I2S.h:657
size_t bufSize
Definition: I2S.h:663
void I2S_stopClocks(I2S_Handle handle)
Stops the WS, SCK and MCLK clocks.
size_t bytesTransferred
Definition: I2S.h:665
I2S_SamplingEdge_
I2S sampling setting.
Definition: I2S.h:740
I2S_Callback errorCallback
Definition: I2S.h:945
void(* I2S_StopInterface)(I2S_Handle handle)
The definition of a function used to stop an I2S interface.
Definition: I2S.h:705
void I2S_stopWrite(I2S_Handle handle)
Stop write transactions.
bool invertWS
Definition: I2S.h:816
void I2S_stopRead(I2S_Handle handle)
Stop read transactions.
struct I2S_Transaction_ I2S_Transaction
I2S transaction descriptor.
I2S Global configuration.
Definition: I2S.h:969
I2S_ChannelConfig SD1Channels
Definition: I2S.h:893
I2S_PhaseType phaseType
Definition: I2S.h:916
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.
uint16_t numberOfCompletions
Definition: I2S.h:669
uint32_t samplingFrequency
Definition: I2S.h:933
List_Elem queueElement
Definition: I2S.h:659
I2S_Callback readCallback
Definition: I2S.h:939
uint8_t beforeWordPadding
Definition: I2S.h:839
I2S_Role moduleRole
Definition: I2S.h:848
void * object
Definition: I2S.h:971
void I2S_close(I2S_Handle handle)
Function to close a given I2S peripheral specified by the I2S handle.
bool isDMAUnused
Definition: I2S.h:826
struct I2S_Config_ * I2S_Handle
A handle that is returned from a I2S_open() call.
Definition: I2S.h:652
struct I2S_Config_ I2S_Config
I2S Global configuration.
uintptr_t arg
Definition: I2S.h:671
Linked List interface for use in drivers.
bool isMSBFirst
Definition: I2S.h:821
I2S_SamplingEdge samplingEdge
Definition: I2S.h:853