#ifndef CODE_MORSE_H
#define CODE_MORSE_H

typedef struct s_codage{
    int lg; /*longueur  du code: 1 a 15*/
    char signaux[15]; /* signaux a emmettre: de 1 a 15 signes '=' ou ' '*/
} t_codage;

t_codage morse[26] = {
  /* a */  {5,"= ==="}, 
  /* b */  {9,"=== = = ="}, 
  /* c */  {11, "=== = === ="}, 
  /* d */  {7, "=== = ="}, 
  /* e */  {1, "="},
  /* f */  {9, "= = === ="},
  /* g */  {9, "=== === ="},
  /* h */  {7, "= = = ="},
  /* i */  {3, "= ="},
  /* j */  {13, "= === === ==="},
  /* k */  {9, "=== = ==="},
  /* l */  {9, "= === = ="},
  /* m */  {7, "=== ==="},
  /* n */  {5, "=== ="},
  /* o */  {11, "=== === ==="},
  /* p */  {11, "= === === ="},
  /* q */  {13, "=== === = ==="},
  /* r */  {7, "= === ="},
  /* s */  {5, "= = ="},
  /* t */  {3, "==="},
  /* u */  {7, "= = ==="},
  /* v */  {9, "= = = ==="},
  /* w */  {9, "= === ==="},
  /* x */  {11, "=== = = ==="},
  /* y */  {13, "=== = === ==="},
  /* z */  {11, "=== === = ="},
};


#endif
