1.1.5.4.2 DRV_I2S_LRCLK_Sync Function
uint32_t DRV_I2S_LRCLK_Sync (const DRV_HANDLE handle, const uint32_t sample_rate);
Summary
Synchronize to the start of the I2S LRCLK (left/right clock) signal
Description
This function waits until low-tohigh transition of the I2S LRCLK (left/right clock) signal (high-low if Left-Jusitified format, this is determined by the PLIB). In the case where this signal is generated from a codec or other external source, this allows the caller to synchronize calls to the DMA with the LRCLK signal so the left/right channel association is valid.
Preconditions
None.
Returns
True - if the function was successful
False - if a timeout occurred (no transitions seen)
Remarks
None.
Example
_// myI2SHandle is the handle returned_ _// by the DRV_I2S_Open function._
DRV_I2S_LRCLK_Sync(myI2SHandle, 48000);
C
bool DRV_I2S_LRCLK_Sync(const DRV_HANDLE handle, const uint32_t sample_rate);