mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Add WM8731.read() for cached values.
This commit is contained in:
parent
ee3a77f32c
commit
24d60a11e3
@ -36,5 +36,9 @@ void WM8731::write(const address_t reg_address, const reg_t value) {
|
||||
bus.transmit(bus_address, values.data(), values.size());
|
||||
}
|
||||
|
||||
reg_t WM8731::read(const address_t reg_address) {
|
||||
return map.w[reg_address];
|
||||
}
|
||||
|
||||
} /* namespace wm8731 */
|
||||
} /* namespace wolfson */
|
||||
|
@ -394,6 +394,8 @@ public:
|
||||
// write(Register::AnalogAudioPathControl);
|
||||
// }
|
||||
|
||||
reg_t read(const address_t reg_address);
|
||||
|
||||
private:
|
||||
I2C& bus;
|
||||
const I2C::address_t bus_address;
|
||||
|
Loading…
Reference in New Issue
Block a user