wm8731.c File Reference

WM8731 Audio codec 2 wire driver. More...

#include "wm8731.h"
#include "hw/hw_wm8731.h"
#include "cfg/cfg_wm8731.h"
#include <cfg/log.h>
#include <cfg/macros.h>
#include <cpu/irq.h>
#include <drv/i2c.h>

Go to the source code of this file.

Functions

void wm8731_setVolume (Wm8731 *ctx, uint16_t device, uint8_t volume)
 Set the volume of select device line in or Headphone.

Detailed Description

WM8731 Audio codec 2 wire driver.

Author:
Daniele Basile <asterix@develer.com>

Definition in file wm8731.c.


Function Documentation

void wm8731_setVolume ( Wm8731 *  ctx,
uint16_t  device,
uint8_t  volume 
)

Set the volume of select device line in or Headphone.

The volume is express in %, and the volume range is 0-100%.

Definition at line 71 of file wm8731.c.