//---------------------------------------------------------------------------------------------------------------------------- // Project: Uppsense // Name: excitation_light.h // Author: Maximilian Stiefel // Date: 09.08.2017 // // Description: // //---------------------------------------------------------------------------------------------------------------------------- #ifndef APP_EXCITATION_LIGHT_H_ #define APP_EXCITATION_LIGHT_H_ //-------------------------------------Libraries------------------------------------------------------------------------------ #include #include "dac101c085.h" #include "hardware.h" //-------------------------------------Defines-------------------------------------------------------------------------------- //-------------------------------------Namespaces----------------------------------------------------------------------------- namespace rijnfel { namespace light { //-------------------------------------Enums---------------------------------------------------------------------------------- //-------------------------------------cExcitationLight----------------------------------------------------------------------- class cExcitationLight { public: cExcitationLight(); // Constructor ~cExcitationLight(); // Destructor uint8_t setCurrent(uint16_t microamp); uint8_t rectangleUpdate(); private: dac::cDAC101C085 *m_DAC; uint8_t m_rectangleStatus; uint16_t m_DAC_Rect_High; }; } } #endif /* APP_EXCITATION_LIGHT_H_ */