key_formats.h 615 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef KEY_FORMATS_H
  2. #define KEY_FORMATS_H
  3. #define FORMAT_NUM 21
  4. typedef struct {
  5. char* manufacturer;
  6. char* format_name;
  7. char* format_link;
  8. int sides;
  9. int stop;
  10. double first_pin_inch;
  11. double last_pin_inch;
  12. double pin_increment_inch;
  13. int pin_num;
  14. double pin_width_inch;
  15. double drill_angle;
  16. double elbow_inch;
  17. double uncut_depth_inch;
  18. double deepest_depth_inch;
  19. double depth_step_inch;
  20. int min_depth_ind;
  21. int max_depth_ind;
  22. int macs;
  23. int clearance;
  24. } KeyFormat;
  25. extern const KeyFormat all_formats[FORMAT_NUM];
  26. #endif // KEY_FORMATS_H