KiCad PCB EDA Suite
eserie.h File Reference
#include <array>
#include <vector>
#include <string>

Go to the source code of this file.

Classes

struct  R_DATA
 
class  E_SERIE
 

Macros

#define E24_VALUES
 E-Values derived from a geometric sequence formula by Charles Renard were already accepted and widely used before the ISO recommendation no. More...
 
#define E12_VALUES   1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2, 0.0
 
#define E6_VALUES   1.0, 1.5, 2.2, 3.3, 4.7, 6.8, 0.0
 
#define E3_VALUES   1.0, 2.2, 4.7, 0.0
 
#define E1_VALUES   1.0, 0.0
 
#define FIRST_VALUE   10
 
#define LAST_VALUE   1e6
 

Enumerations

enum  {
  E1, E3, E6, E12,
  E24
}
 List of handled E series values: Note: series bigger than E24 have no interest because. More...
 
enum  { S2R, S3R, S4R }
 This calculator suggests solutions for 2R, 3R and 4R replacement combinations. More...
 

Macro Definition Documentation

◆ E12_VALUES

#define E12_VALUES   1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2, 0.0

Definition at line 40 of file eserie.h.

◆ E1_VALUES

#define E1_VALUES   1.0, 0.0

Definition at line 46 of file eserie.h.

◆ E24_VALUES

#define E24_VALUES
Value:
1.0, 1.1, 1.2, 1.3, 1.5, 1.6, 1.8, 2.0, 2.2, 2.4, 2.7, 3.0,\
3.3, 3.6, 3.9, 4.3, 4.7, 5.1, 5.6, 6.2, 6.8, 7.5, 8.2, 9.1, 0.0

E-Values derived from a geometric sequence formula by Charles Renard were already accepted and widely used before the ISO recommendation no.

3 has been published. For this historical reason, rounding rules of some values are sometimes irregular. Although all E-Values could be calculated at runtime, we initialize them in a lookup table what seems the most easy way to consider any inconvenient irregular rules. Same table is also used to lookup non calculable but readable BOM value strings. Supported E-series are:

Definition at line 37 of file eserie.h.

◆ E3_VALUES

#define E3_VALUES   1.0, 2.2, 4.7, 0.0

Definition at line 44 of file eserie.h.

◆ E6_VALUES

#define E6_VALUES   1.0, 1.5, 2.2, 3.3, 4.7, 6.8, 0.0

Definition at line 42 of file eserie.h.

◆ FIRST_VALUE

#define FIRST_VALUE   10

Definition at line 50 of file eserie.h.

◆ LAST_VALUE

#define LAST_VALUE   1e6

Definition at line 53 of file eserie.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

List of handled E series values: Note: series bigger than E24 have no interest because.

  • probably the user will fing the needed value inside these series
  • the calcuation time can be very high for series > E24
Enumerator
E1 
E3 
E6 
E12 
E24 

Definition at line 61 of file eserie.h.

61 { E1, E3, E6, E12, E24 };
Definition: eserie.h:61
Definition: eserie.h:61
Definition: eserie.h:61
Definition: eserie.h:61
Definition: eserie.h:61

◆ anonymous enum

anonymous enum

This calculator suggests solutions for 2R, 3R and 4R replacement combinations.

Enumerator
S2R 
S3R 
S4R 

Definition at line 66 of file eserie.h.

66 { S2R, S3R, S4R };
Definition: eserie.h:66
Definition: eserie.h:66
Definition: eserie.h:66