Import initial du projet shipheart_appli
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
/**********************************************************************************************************************************************************************************
|
||||
|
||||
Fichier C_BUS.H
|
||||
|
||||
Contient tous les define liés au C_BUS
|
||||
|
||||
**********************************************************************************************************************************************************************************/
|
||||
|
||||
// Maximums :
|
||||
#define C_BUS_MAX_TAILLE_BUFFER_CDES 100 // Taille du buffer de commandes (donc on stocke plusieurs commandes entières !) C-bus en mode UP
|
||||
#define C_BUS_PROTOCOLE_TX_MAX_REPETITIONS 3 // Nombre de répétitions des commandes émises sur C_Bus
|
||||
#define C_BUS_MAX_TAILLE_BUFFER_TX 550
|
||||
#define C_BUS_MAX_TAILLE_CDE 500
|
||||
#define C_BUS_MAX_TAILLE_REPONSE 500
|
||||
|
||||
|
||||
// Tempos :
|
||||
#define C_BUS_TEMPO_INIT 2 // En x 100ms
|
||||
#define C_BUS_PROTOCOLE_RX_TEMPO_INIT 10 // en x 100ms
|
||||
#define C_BUS_PROTOCOLE_TX_TEMPO_INIT 10 // en x 100ms
|
||||
#define C_BUS_TIME_OUT_REPONSE_TX 2 // En x 100ms
|
||||
|
||||
// Priorité des commandes :
|
||||
#define PRIORITE_CDE_C_BUS_FAIBLE 0
|
||||
#define PRIORITE_CDE_C_BUS_HAUTE 1
|
||||
|
||||
|
||||
// Etats du séquenceur C-Bus :
|
||||
#define ETAT_SEQUENCEUR_C_BUS_INIT 0
|
||||
#define ETAT_SEQUENCEUR_C_BUS_REPOS 1
|
||||
|
||||
// Etats séquenceur du Protocole_Rx C-bus :
|
||||
#define ETAT_SEQUENCEUR_C_BUS_PROTOCOLE_RX_INIT 0
|
||||
#define ETAT_SEQUENCEUR_C_BUS_PROTOCOLE_RX_REPOS 1
|
||||
#define ETAT_SEQUENCEUR_C_BUS_PROTOCOLE_RX_SENS 2
|
||||
#define ETAT_SEQUENCEUR_C_BUS_PROTOCOLE_RX_STX 3
|
||||
#define ETAT_SEQUENCEUR_C_BUS_PROTOCOLE_RX_DATA 4
|
||||
#define ETAT_SEQUENCEUR_C_BUS_PROTOCOLE_RX_ETX 5
|
||||
#define ETAT_SEQUENCEUR_C_BUS_PROTOCOLE_RX_CS 6
|
||||
#define ETAT_SEQUENCEUR_C_BUS_PROTOCOLE_RX_NACK 7
|
||||
#define ETAT_SEQUENCEUR_C_BUS_PROTOCOLE_RX_ERREUR 10
|
||||
|
||||
// Etats séquenceur du Protocole_Tx C-bus :
|
||||
#define ETAT_SEQUENCEUR_C_BUS_PROTOCOLE_TX_INIT 0
|
||||
#define ETAT_SEQUENCEUR_C_BUS_PROTOCOLE_TX_REPOS 1
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user