18 namespace duds {
namespace hardware {
namespace devices {
namespace instruments {
44 std::unique_ptr<duds::hardware::interface::I2c>
com;
65 std::uint16_t broad,
ir;
73 TSL2591(std::unique_ptr<duds::hardware::interface::I2c> &c);
95 void init(
int gain,
int integration);
142 #endif // #ifndef TSL2591_HPP A container for a value and a unit to better describe the value.
An invalid integration time was specified.
std::uint16_t brightnessIrCount() const
The value reported by the device for the infrared brightness.
A quick try at supporting TSL2591 brightness sensor; will change significantly in the future...
duds::hardware::interface::Conversation input
The conversation used to query the brightness values.
Base class for all TSL2591 specific errors.
An invalid gain value was specified.
std::unique_ptr< duds::hardware::interface::I2c > com
The I2C communication interface.
std::uint16_t brightnessCount() const
The value reported by the device for the broad spectrum brightness.
double scale
A scalar value used to partially convert the counts supplied by the device into a value in Watts per ...
Header for Conversarion; includes ConversationVector.hpp and ConversationExternal.hpp.
The base type for errors from devices.
duds::hardware::interface::Conversation initialize
The conversation used to initialize the device.
Represents a two-way conversation with a device.