blob: aa7a521cde26180297074156a207704fa2597b37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <cstdint>
#include "dac.hpp"
#include "gpio-expander.hpp"
#include "i2c.hpp"
#include "i2c_fixture.hpp"
#include "catch2/catch.hpp"
namespace drivers {
TEST_CASE("dac configuration", "[integration]") {
I2CFixture i2c;
GpioExpander expander;
std::unique_ptr<AudioDac> dac = AudioDac::create(&expander).value();
auto power_state = dac->ReadPowerState();
REQUIRE(power_state.first == true); // booted
}
} // namespace drivers
|