Heater for threaded program
Dependents: LEX_Threaded_Programming_V3
Heater.h
- Committer:
- omatthews
- Date:
- 2019-07-17
- Revision:
- 0:4e33cc8171f4
- Child:
- 1:4435d407d827
File content as of revision 0:4e33cc8171f4:
/*------------------------------------------------------------------------------ Library header file for heater operations Date: 16/07/2018 ------------------------------------------------------------------------------*/ #ifndef Heater_H #define Heater_H #include "mbed.h" #include "ADS8568_ADC.h" class Heater { public: /** Constructor * @param MOSI SPI pin * @param MISO SPI pin * @param SCLK SPI pin * @param nCS SPI pin * @param ADC reset pin * @param Conv chA pin * @param Conv chB pin * @param Conv chC pin * @param Conv chD pin */ Heater(int i_port, int v_port, DigitalOut drive, float R_set = 1); //Public member functions void read_R(); void hold(int hold_time); void Set_R_set(float R); float Get_R(); protected: float i; float v; float R; float R_set; int i_port; int v_port; DigitalOut drive; }; #endif