![]() |
MAX32675 Peripheral Driver API
Peripheral Driver API for the MAX32675
|
Modules | |
| I2S_Registers | |
Data Structures | |
| struct | mxc_i2s_req_t |
Enumerations | |
| enum | mxc_i2s_stereo_t |
| enum | mxc_i2s_polarity_t |
| enum | mxc_i2s_bitorder_t |
| enum | mxc_i2s_justify_t |
| enum | mxc_i2s_wsize_t |
| enum | mxc_i2s_samplesize_t |
| enum | mxc_i2s_ch_mode_t |
Functions | |
| int | MXC_I2S_Init (mxc_i2s_req_t *req) |
| int | MXC_I2S_Shutdown (void) |
| int | MXC_I2S_ConfigData (mxc_i2s_req_t *req) |
| void | MXC_I2S_TXEnable (void) |
| void | MXC_I2S_TXDisable (void) |
| void | MXC_I2S_RXEnable (void) |
| void | MXC_I2S_RXDisable (void) |
| int | MXC_I2S_SetRXThreshold (uint8_t threshold) |
| int | MXC_I2S_SetFrequency (mxc_i2s_ch_mode_t mode, uint16_t clkdiv) |
| void | MXC_I2S_Flush (void) |
| void | MXC_I2S_EnableInt (uint32_t flags) |
| void | MXC_I2S_DisableInt (uint32_t flags) |
| int | MXC_I2S_GetFlags (void) |
| void | MXC_I2S_ClearFlags (uint32_t flags) |
| void | MXC_I2S_TXDMAConfig (void *src_addr, int len) |
| void | MXC_I2S_RXDMAConfig (void *dest_addr, int len) |
| struct mxc_i2s_req_t |
I2S Configuration Struct.
| void MXC_I2S_ClearFlags | ( | uint32_t | flags | ) |
Clears Interrupt Flags.
| flags | Interrupt flags to be cleared |
| int MXC_I2S_ConfigData | ( | mxc_i2s_req_t * | req | ) |
Configure data to be transmitted based on word and sample size.
| req | see mxc_i2s_req_t I2S Request Struct |
| void MXC_I2S_DisableInt | ( | uint32_t | flags | ) |
Disable Interrupt.
| flags | Interrupt mask |
| void MXC_I2S_EnableInt | ( | uint32_t | flags | ) |
Enable Interrupts.
| flags | Interrupt mask |
| void MXC_I2S_Flush | ( | void | ) |
Flush I2S FIFO.
| int MXC_I2S_GetFlags | ( | void | ) |
Get the set interrupt flags.
| int MXC_I2S_Init | ( | mxc_i2s_req_t * | req | ) |
Initialize I2S resources.
| req | see mxc_i2s_req_t I2S Request Struct |
| void MXC_I2S_RXDMAConfig | ( | void * | dest_addr, |
| int | len | ||
| ) |
Configure RX DMA transaction.
| dest_addr | destination address |
| len | length of the data to be received |
| int MXC_I2S_SetFrequency | ( | mxc_i2s_ch_mode_t | mode, |
| uint16_t | clkdiv | ||
| ) |
Set I2S Frequency, automatically called by I2S_Init.
| mode | Channel mode to select clock |
| clkdiv | clock divider to set baudrate |
| int MXC_I2S_SetRXThreshold | ( | uint8_t | threshold | ) |
Set threshold for RX FIFO
| threshold | RX FIFO interrupt threshold. |
| int MXC_I2S_Shutdown | ( | void | ) |
Release I2S, clear configuration and flush FIFOs.
| void MXC_I2S_TXDMAConfig | ( | void * | src_addr, |
| int | len | ||
| ) |
Configure TX DMA transaction.
| src_addr | source address of data |
| len | length od the data to be transmitted |