1.1.5.4.3 DRV_I2S_SerialSetup Function
bool DRV_I2S_SerialSetup(const DRV_HANDLE handle,
DRV_I2S_SERIAL_SETUP * setup)
Summary
Sets the I2S serial communication settings dynamically.
Description
This function sets the I2S serial communication settings dynamically.
Preconditions
DRV_I2S_Open must have been called to obtain a valid opened device handle. The I2S transmit or receive transfer status should not be busy.
Parameters
Parameters | Description |
---|---|
handle | A valid open-instance handle, returned from the driver's open routine |
setup | Pointer to the structure containing the serial setup. |
Returns
True - Serial setup was updated successfully.
False - Failure while updating serial setup.
Remarks
None.
Example
_// 'handle', returned from the DRV_I2S_Open_ DRV_I2S_SERIAL_SETUP setup = { 115200, DRV_I2S_DATA_8_BIT, DRV_I2S_PARITY_ODD, DRV_I2S_STOP_1_BIT }; DRV_I2S_SerialSetup(handle, &setup);
C
bool DRV_I2S_SerialSetup(const DRV_HANDLE handle, DRV_I2S_SERIAL_SETUP * setup);