Version 3 is with update to the test rig with a linear actuator
Dependencies: SPTE_10Bar_5V mbed AS5048 SDFileSystem MODSERIAL PinDetect LCM101 LinearActuator
Diff: bench.h
- Revision:
- 10:77fcbad99a31
- Parent:
- 8:bc467f5fe7c3
- Child:
- 11:fc82dd22a527
- Child:
- 12:b0a6faaa5e9f
--- a/bench.h Mon Dec 09 13:10:24 2019 +0000 +++ b/bench.h Mon Feb 17 15:15:24 2020 +0000 @@ -35,6 +35,11 @@ HIP }; + enum DACChannel { + A, + B + }; + // constructor Bench(PinName mosi = AS5048_MOSI, PinName miso = AS5048_MISO, PinName sck = AS5048_SCLK, PinName cs = AS5048_CS, bool use5kN = sensors::use5kN,PinName p_lcm101 = LCM101, @@ -75,6 +80,10 @@ float getPressure1(); void nullPressure1(); + //MAX5322 DACs (two channels per DAC) + void setDACA(DACChannel ch, unsigned int bitValue); + void setDACB(DACChannel ch, unsigned int bitValue); + //controlling valve bool getValve(); void setValve(bool pressurise);