Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: temp X_NUCLEO_CCA01M1 X_NUCLEO_CCA01M1 X_NUCLEO_CCA02M1
I2S Configuration Functions
Functions | |
| void | i2s_init (i2s_t *obj, PinName data, PinName sclk, PinName wsel, PinName fdpx, PinName mclk, i2s_mode_t mode) |
| Initialize the I2S peripheral. | |
| void | i2s_free (i2s_t *obj) |
| Release a I2S object. | |
| void | i2s_format (i2s_t *obj, int dbits, int fbits, int polarity) |
| Configure the I2S format. | |
| void | i2s_set_protocol (i2s_t *obj, i2s_bitorder_t protocol) |
| Configure the I2S protocol. | |
| void | i2s_set_mode (i2s_t *obj, i2s_mode_t mode) |
| Configure the I2S mode. | |
| void | i2s_audio_frequency (i2s_t *obj, uint32_t hz) |
| Set the I2S audio frequency. | |
Function Documentation
| void i2s_audio_frequency | ( | i2s_t * | obj, |
| uint32_t | hz | ||
| ) |
| void i2s_format | ( | i2s_t * | obj, |
| int | dbits, | ||
| int | fbits, | ||
| int | polarity | ||
| ) |
Configure the I2S format.
Set the number of bits per frame, configure clock polarity and phase, shift order and master/slave mode
| void i2s_free | ( | i2s_t * | obj ) |
| void i2s_init | ( | i2s_t * | obj, |
| PinName | data, | ||
| PinName | sclk, | ||
| PinName | wsel, | ||
| PinName | fdpx, | ||
| PinName | mclk, | ||
| i2s_mode_t | mode | ||
| ) |
Initialize the I2S peripheral.
Configures the pins used by I2S, sets a default format and frequency, and enables the peripheral
- Parameters:
-
[out] obj The I2S object to initialize [in] data I2S data input/output pin [in] sclk I2S clock output pin [in] wsel I2S word select output pin (might be NC for PDM sources) [in] fdpx I2S data input pin (for full-duplex operation, default = NC) [in] mclk I2S master clock output pin (default = NC, enables master clock output when not NC) [in] mode I2S mode to be applied
| void i2s_set_mode | ( | i2s_t * | obj, |
| i2s_mode_t | mode | ||
| ) |
Generated on Fri Jul 15 2022 06:41:44 by
1.7.2