| 1 | /**
|
|---|
| 2 | ******************************************************************************
|
|---|
| 3 | * @file log.h
|
|---|
| 4 | * @author ECS - Falko Jahn
|
|---|
| 5 | * @version V1.0.0
|
|---|
| 6 | * @date 26-August-2019
|
|---|
| 7 | * @brief Log, Ausgabe
|
|---|
| 8 | *
|
|---|
| 9 | * Beschreibung
|
|---|
| 10 | * Farbige Ausgabe,
|
|---|
| 11 | * Informationen in Grün
|
|---|
| 12 | * Meldungen in Gelb
|
|---|
| 13 | * Fehler in Rot
|
|---|
| 14 | *
|
|---|
| 15 | ******************************************************************************
|
|---|
| 16 | */
|
|---|
| 17 | #ifndef __LOG_H
|
|---|
| 18 | #define __LOG_H
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | //--- INCLUDEs -----------------------------------------------------------------
|
|---|
| 22 | //--- GLOBALE TYPE DEFS --------------------------------------------------------
|
|---|
| 23 | //--- GLOBALE DEFINES ----------------------------------------------------------
|
|---|
| 24 | //--- GLOBALE VARIABLEN PROTOTYPEN ---------------------------------------------
|
|---|
| 25 |
|
|---|
| 26 | //--- GLOBALE FUNKTIONS PROTOTYPEN ---------------------------------------------
|
|---|
| 27 |
|
|---|
| 28 | /**
|
|---|
| 29 | * @brief Initialisierungsfunktion
|
|---|
| 30 | *
|
|---|
| 31 | * Beschreibung:
|
|---|
| 32 | * Reset der Formatierung,
|
|---|
| 33 | * Mountet die SD Karte,
|
|---|
| 34 | * Öffnet eine Logdatei auf der SD Karte
|
|---|
| 35 | * @author
|
|---|
| 36 | *
|
|---|
| 37 | * @param Keine
|
|---|
| 38 | *
|
|---|
| 39 | * @retval Kein
|
|---|
| 40 | */
|
|---|
| 41 | //void LOG_Init(void);
|
|---|
| 42 |
|
|---|
| 43 | /**
|
|---|
| 44 | * @brief Ausgabefunktion Information
|
|---|
| 45 | *
|
|---|
| 46 | * Beschreibung:
|
|---|
| 47 | * Text Ausgabe in Grün, Abschließender Zeilenumbruch
|
|---|
| 48 | * Funktion: Information
|
|---|
| 49 | *
|
|---|
| 50 | * @author
|
|---|
| 51 | *
|
|---|
| 52 | * @param Keine
|
|---|
| 53 | *
|
|---|
| 54 | * @retval Kein
|
|---|
| 55 | */
|
|---|
| 56 | void LOG_I(char * tag, char * str);
|
|---|
| 57 |
|
|---|
| 58 | /**
|
|---|
| 59 | * @brief Ausgabefunktion Warning
|
|---|
| 60 | *
|
|---|
| 61 | * Beschreibung:
|
|---|
| 62 | * Text Ausgabe in Gelb, Abschließender Zeilenumbruch
|
|---|
| 63 | * Funktion: Meldunge, Warnung
|
|---|
| 64 | *
|
|---|
| 65 | * @author
|
|---|
| 66 | *
|
|---|
| 67 | * @param Keine
|
|---|
| 68 | *
|
|---|
| 69 | * @retval Kein
|
|---|
| 70 | */
|
|---|
| 71 | void LOG_W(char * tag, char * str);
|
|---|
| 72 |
|
|---|
| 73 | /**
|
|---|
| 74 | * @brief Ausgabefunktion Error
|
|---|
| 75 | *
|
|---|
| 76 | * Beschreibung:
|
|---|
| 77 | * Text Ausgabe in Rot, Abschließender Zeilenumbruch
|
|---|
| 78 | * Funktion: wichtige Meldung, Fehler
|
|---|
| 79 | *
|
|---|
| 80 | * @author
|
|---|
| 81 | *
|
|---|
| 82 | * @param Keine
|
|---|
| 83 | *
|
|---|
| 84 | * @retval Kein
|
|---|
| 85 | */
|
|---|
| 86 | void LOG_E(char * tag, char * str);
|
|---|
| 87 |
|
|---|
| 88 | /**
|
|---|
| 89 | * @brief Ausgabefunktion formatiert für das Profinet Modul
|
|---|
| 90 | *
|
|---|
| 91 | * Beschreibung:
|
|---|
| 92 | * Formatierte Textausgabe, in Grün, Abschließender Zeilenumbruch
|
|---|
| 93 | * Funktion: wie printf
|
|---|
| 94 | *
|
|---|
| 95 | * @author
|
|---|
| 96 | *
|
|---|
| 97 | * @param Keine
|
|---|
| 98 | *
|
|---|
| 99 | * @retval Kein
|
|---|
| 100 | */
|
|---|
| 101 |
|
|---|
| 102 | //void LOG_Buffer_Exec(void);
|
|---|
| 103 |
|
|---|
| 104 | /**
|
|---|
| 105 | * @brief Ausgabefunktion Information Console + SD Karte
|
|---|
| 106 | *
|
|---|
| 107 | * Beschreibung:
|
|---|
| 108 | * Text Ausgabe in Grün, Abschließender Zeilenumbruch
|
|---|
| 109 | * Funktion: Information
|
|---|
| 110 | *
|
|---|
| 111 | * @author
|
|---|
| 112 | *
|
|---|
| 113 | * @param Keine
|
|---|
| 114 | *
|
|---|
| 115 | * @retval Kein
|
|---|
| 116 | */
|
|---|
| 117 | //void LOG_I_SD(char * tag, char * str);
|
|---|
| 118 |
|
|---|
| 119 | /**
|
|---|
| 120 | * @brief Ausgabefunktion Warnung in Console + SD Karte
|
|---|
| 121 | *
|
|---|
| 122 | * Beschreibung:
|
|---|
| 123 | * Text Ausgabe in Grün, Abschließender Zeilenumbruch
|
|---|
| 124 | * Funktion: Information
|
|---|
| 125 | *
|
|---|
| 126 | * @author
|
|---|
| 127 | *
|
|---|
| 128 | * @param Keine
|
|---|
| 129 | *
|
|---|
| 130 | * @retval Kein
|
|---|
| 131 | */
|
|---|
| 132 | //void LOG_W_SD(char * tag, char * str);
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 | /**
|
|---|
| 136 | * @brief Ausgabefunktion Error in Console + SD Karte
|
|---|
| 137 | *
|
|---|
| 138 | * Beschreibung:
|
|---|
| 139 | * Text Ausgabe in Grün, Abschließender Zeilenumbruch
|
|---|
| 140 | * Funktion: Information
|
|---|
| 141 | *
|
|---|
| 142 | * @author
|
|---|
| 143 | *
|
|---|
| 144 | * @param Keine
|
|---|
| 145 | *
|
|---|
| 146 | * @retval Kein
|
|---|
| 147 | */
|
|---|
| 148 | //void LOG_E_SD(char * tag, char * str);
|
|---|
| 149 |
|
|---|
| 150 | #endif
|
|---|
| 151 |
|
|---|
| 152 |
|
|---|