![]() |
LPCOpen Platform for LPC18XX/43XX microcontrollers
18XX43XX
LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers
|
WM8903 Audio codec interface module, the module registers are accessed using I2C. The board which uses this module must define WM8903_I2C_BUS to I2C0, I2C1, etc, based on which I2C bus is connected to WM8903. All the functions in this modules assumes that the I2C interrupt for WM8903_I2C_BUS is enabled and Chip_I2C_MasterStateHandler(WM8903_I2C_BUS) is called from the ISR. If the functions are to be used in polling mode the caller must replace the event handler to Chip_I2C_EventHandlerPolling(), by using API Chip_I2C_SetMasterEventHandler(). A macro I2CDEV_WM8903_ADDR must be defined to the appropriate slave address of WM8903 audio codec.
Functions | |
| uint32_t | WM8903_REG_Write (uint8_t reg, uint16_t val) |
| Write a 16-bit value to Codec Register. More... | |
| uint16_t | WM8903_REG_Read (uint8_t reg) |
| Read a 16-bit value from WM8903 codec register. More... | |
| int | WM8903_Init (int input) |
| Initialize WM8903 to its default state. More... | |
| void | WM8903_DeInit (void) |
| Disable the WM8903. More... | |
| void | WM8903_DumpAllRegisters (void) |
| Debug function to print contents of all WM8903 registers to debug console. More... | |
| #define FLL_LOCK_EINT_MASK (1<<FLL_LOCK_EINT_BIT) |
| #define WSEQ_BUSY_MASK (1<<WSEQ_BUSY_BIT) |
| void WM8903_DeInit | ( | void | ) |
| void WM8903_DumpAllRegisters | ( | void | ) |
| int WM8903_Init | ( | int | input | ) |
| uint16_t WM8903_REG_Read | ( | uint8_t | reg | ) |
1.8.3.1