KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eseries.h File Reference
#include <array>
#include <vector>
#include <string>
#include <cstdint>

Go to the source code of this file.

Classes

struct  R_DATA
 
class  E_SERIES
 

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 41 of file eseries.h.

◆ E1_VALUES

#define E1_VALUES   1.0, 0.0

Definition at line 47 of file eseries.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 38 of file eseries.h.

◆ E3_VALUES

#define E3_VALUES   1.0, 2.2, 4.7, 0.0

Definition at line 45 of file eseries.h.

◆ E6_VALUES

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

Definition at line 43 of file eseries.h.

◆ FIRST_VALUE

#define FIRST_VALUE   10

Definition at line 51 of file eseries.h.

◆ LAST_VALUE

#define LAST_VALUE   1e6

Definition at line 54 of file eseries.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 calculation time can be very high for series > E24
Enumerator
E1 
E3 
E6 
E12 
E24 

Definition at line 62 of file eseries.h.

◆ anonymous enum

anonymous enum

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

Enumerator
S2R 
S3R 
S4R 

Definition at line 67 of file eseries.h.