Major updates:
- added DAConverter(s) - added ADConverter(s) - Fixed some display issues - Made repair process and signalProfileGenerator calculate with voltages (signed) instead of DAC/ADC values - Fixed several bugs in task handlings - Put display data mirror into dedicated file displaycontent git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@261 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -31,7 +31,11 @@
|
||||
// Include files
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "stm32f10x.h"
|
||||
|
||||
#include "ADCDevice.h"
|
||||
// -----------------------------------------------------------------------------
|
||||
// Constant and macro definitions
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -42,11 +46,57 @@
|
||||
// Type definitions.
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
struct ADConverter
|
||||
{
|
||||
bool initialized;
|
||||
int minVoltage;
|
||||
int maxVoltage;
|
||||
struct ADCDevice* adcDevice;
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Function declarations
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* ADConverter_construct
|
||||
* Description of function
|
||||
*
|
||||
* @param self
|
||||
* @param
|
||||
* @return ErrorStatus
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern ErrorStatus ADConverter_construct(struct ADConverter* self, int minVoltage, int maxVoltage, struct ADCDevice* adcDevice);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* ADConverter_destruct
|
||||
* Description of function
|
||||
*
|
||||
* @param self
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern void ADConverter_destruct(struct ADConverter* self);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* ADConverter_setOutputVoltage
|
||||
* Description of function
|
||||
*
|
||||
* @param self
|
||||
*
|
||||
* @return int
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern int ADConverter_getInputVoltage(const struct ADConverter* self);
|
||||
|
||||
#endif /* ADCONVERTER_H_ */
|
||||
|
||||
Reference in New Issue
Block a user