My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
potentiometer.defs.h
Go to the documentation of this file.
1 /*
2  * potentiometer.defs.h - device definition header
3  *
4  * This is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2, or (at your option)
7  * any later version.
8  *
9  */
10 
11 #ifndef __potentiometer_DEFS_H__
12 #define __potentiometer_DEFS_H__
13 
14 // required properties
15 PROP_REQ [] = {
16  { "R_pot", PROP_REAL, { 1e4, PROP_NO_STR }, PROP_MIN_VAL (1e-6) },
17  { "Rotation", PROP_REAL, { 120, PROP_NO_STR }, PROP_MIN_VAL (0) },
18  { "Taper_Coeff", PROP_REAL, { 0, PROP_NO_STR }, PROP_MIN_VAL (0) },
19  { "LEVEL", PROP_INT, { 1, PROP_NO_STR }, PROP_RNGII (1, 3) },
20  { "Max_Rotation", PROP_REAL, { 240.0, PROP_NO_STR }, PROP_MIN_VAL (0) },
21  { "Conformity", PROP_REAL, { 0.2, PROP_NO_STR }, PROP_NO_RANGE },
22  { "Linearity", PROP_REAL, { 0.2, PROP_NO_STR }, PROP_NO_RANGE },
23  { "Contact_Res", PROP_REAL, { 1, PROP_NO_STR }, PROP_MIN_VAL (1e-6) },
24  { "Temp_Coeff", PROP_REAL, { 100, PROP_NO_STR }, PROP_MIN_VAL (0) },
25  { "Tnom", PROP_REAL, { 26.85, PROP_NO_STR }, PROP_MIN_VAL (-273) },
26  PROP_NO_PROP };
27 
28 // optional properties
29 PROP_OPT [] = {
30  { "Temp", PROP_REAL, { 26.85, PROP_NO_STR }, PROP_MIN_VAL (K) },
31  PROP_NO_PROP };
32 
33 // device definition
34 struct define_t potentiometer::cirdef =
35  { "potentiometer",
37 
38 #endif /* __potentiometer_DEFS_H__ */