|
gossamer 0.0.1
a very lightweight app framework for SAMD and SAML chips
|
Functions for configuring and using the I2S peripheral (SAM D21 only). More...
Enumerations | |
| enum | i2s_mode_t { I2S_MODE_NORMAL , I2S_MODE_RIGHT_JUSTIFIED , I2S_MODE_LEFT_JUSTIFIED } |
Functions | |
| void | i2s_init (uint8_t instance, uint16_t sampleRate, uint8_t bitsPerSample, i2s_mode_t mode) |
| Initializes the I2S peripheral. | |
| void | i2s_enable_receiver (uint8_t instance) |
Functions for configuring and using the I2S peripheral (SAM D21 only).
| void i2s_init | ( | uint8_t | instance, |
| uint16_t | sampleRate, | ||
| uint8_t | bitsPerSample, | ||
| i2s_mode_t | mode ) |
Initializes the I2S peripheral.
| instance | The I2S peripheral instance to initialize. |
| sampleRate | The sample rate to use. |
| bitsPerSample | The number of bits per sample. |
| mode | The I2S mode to use. |