Skip to content

Commit c879116

Browse files
committed
Update analog input and output base classes
1 parent e140c7b commit c879116

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

src/rl/hal/AnalogInput.h

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#ifndef RL_HAL_ANALOGINPUT_H
2828
#define RL_HAL_ANALOGINPUT_H
2929

30+
#include <rl/math/Real.h>
3031
#include <rl/math/Unit.h>
3132

3233
#include "Device.h"
@@ -48,6 +49,10 @@ namespace rl
4849

4950
virtual ::rl::math::Real getAnalogInputMinimum(const ::std::size_t& i) const = 0;
5051

52+
virtual ::std::vector<::rl::math::Unit> getAnalogInputUnit() const = 0;
53+
54+
virtual ::rl::math::Unit getAnalogInputUnit(const ::std::size_t& i) const = 0;
55+
5156
protected:
5257

5358
private:

src/rl/hal/AnalogInputReader.h

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#define RL_HAL_ANALOGINPUTREADER_H
2929

3030
#include <vector>
31-
#include <rl/math/Real.h>
3231

3332
#include "AnalogInput.h"
3433

src/rl/hal/AnalogInputWriter.h

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#define RL_HAL_ANALOGINPUTWRITER_H
2929

3030
#include <vector>
31-
#include <rl/math/Real.h>
3231

3332
#include "AnalogInput.h"
3433

src/rl/hal/AnalogOutput.h

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#ifndef RL_HAL_ANALOGOUTPUT_H
2828
#define RL_HAL_ANALOGOUTPUT_H
2929

30+
#include <rl/math/Real.h>
3031
#include <rl/math/Unit.h>
3132

3233
#include "Device.h"
@@ -48,6 +49,10 @@ namespace rl
4849

4950
virtual ::rl::math::Real getAnalogOutputMinimum(const ::std::size_t& i) const = 0;
5051

52+
virtual ::std::vector<::rl::math::Unit> getAnalogOutputUnit() const = 0;
53+
54+
virtual ::rl::math::Unit getAnalogOutputUnit(const ::std::size_t& i) const = 0;
55+
5156
protected:
5257

5358
private:

src/rl/hal/AnalogOutputWriter.h

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#define RL_HAL_ANALOGOUTPUTWRITER_H
2929

3030
#include <vector>
31-
#include <rl/math/Real.h>
3231

3332
#include "AnalogOutput.h"
3433

0 commit comments

Comments
 (0)