libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
codec_pcm3060.h
Go to the documentation of this file.
1#pragma once
2#ifndef DSY_CODEC_PCM3060_H
3#define DSY_CODEC_PCM3060_H
4#include "per/i2c.h"
5namespace daisy
6{
20{
21 public:
22 enum class Result
23 {
24 OK,
25 ERR,
26 };
27
30
35
36 private:
38 Result ReadRegister(uint8_t addr, uint8_t *data);
39
41 Result WriteRegister(uint8_t addr, uint8_t val);
42
43 I2CHandle i2c_;
44 uint8_t dev_addr_;
45};
46
47} // namespace daisy
48#endif
Definition i2c.h:26
Definition codec_pcm3060.h:20
~Pcm3060()
Definition codec_pcm3060.h:29
Result
Definition codec_pcm3060.h:23
Pcm3060()
Definition codec_pcm3060.h:28
Result Init(I2CHandle i2c)
Hardware defines and helpers for daisy field platform.
Definition index.h:2