#include "board.h"
Go to the source code of this file.
Detailed Description
Implementation WM8904 driver.
Definition in file cs2100.h.
Define Documentation
#define CS2100_REG_32_BIT_RATIO_1 0x06 |
Power management control 0 register
Definition at line 61 of file cs2100.h.
#define CS2100_REG_32_BIT_RATIO_2 0x07 |
Power management control 0 register
Definition at line 63 of file cs2100.h.
#define CS2100_REG_32_BIT_RATIO_3 0x08 |
Power management control 0 register
Definition at line 65 of file cs2100.h.
#define CS2100_REG_32_BIT_RATIO_4 0x09 |
Power management control 0 register
Definition at line 67 of file cs2100.h.
#define CS2100_REG_CFG 0x05 |
Bias control 1 register
Definition at line 58 of file cs2100.h.
#define CS2100_REG_CTRL 0x02 |
VMID control 0 register
Definition at line 52 of file cs2100.h.
#define CS2100_REG_DEV_CFG1 0x03 |
MIC Bias control 0 register
Definition at line 55 of file cs2100.h.
#define CS2100_REG_FUNC_CFG1 0x16 |
Power management control 2 register
Definition at line 69 of file cs2100.h.
#define CS2100_REG_FUNC_CFG2 0x17 |
Power management control 3 register
Definition at line 71 of file cs2100.h.
#define CS2100_REG_FUNC_CFG3 0x1E |
Power management control 3 register
Definition at line 73 of file cs2100.h.
#define CS2100_REG_ID 0x01 |
ID and Rev register
Definition at line 49 of file cs2100.h.
Function Documentation
uint8_t CS2100_Init |
( |
Twid * |
pTwid, |
|
|
uint32_t |
device, |
|
|
uint32_t |
PCK | |
|
) |
| | |
Initialize CS2100 Clock Multiplier.
- Parameters:
-
| pTwid | Pointer to twi driver structure |
| device | Twi slave address. |
| PCK | Device programmable clock |
Definition at line 100 of file cs2100.c.
uint16_t CS2100_Read |
( |
Twid * |
pTwid, |
|
|
uint32_t |
device, |
|
|
uint32_t |
regAddr | |
|
) |
| | |
Read data from CS2100 Register.
- Parameters:
-
| pTwid | Pointer to twi driver structure |
| device | Twi slave address. |
| regAddr | Register address to read. |
- Returns:
- value in the given register.
Definition at line 62 of file cs2100.c.
void CS2100_Write |
( |
Twid * |
pTwid, |
|
|
uint32_t |
device, |
|
|
uint32_t |
regAddr, |
|
|
uint16_t |
data | |
|
) |
| | |
Write data to CS2100 Register.
- Parameters:
-
| pTwid | Pointer to twi driver structure |
| device | Twi slave address. |
| regAddr | Register address to write. |
| data | Data to write |
Definition at line 82 of file cs2100.c.