The foxBMS secondary mcu API documentation
com.h
Go to the documentation of this file.
1 
74 #ifndef COM_H_
75 #define COM_H_
76 
77 /*================== Includes =============================================*/
78 #include "general.h"
79 
80 /*================== Macros and Definitions ===============================*/
81 #if (BUILD_MODULE_DEBUGPRINTF)
82 #if (!BUILD_MODULE_ENABLE_UART)
83 #error ERROR: wrong combination of module enable keys in general.h !
84 #error BUILD_MODULE_DEBUGPRINTF could only be used when UART module BUILD_MODULE_ENABLE_UART is activated
85 #endif
86 #else
87  #define fprintf(...)
88  #define printf(...)
89 #endif
90 
91 
92 /*================== Constant and Variable Definitions ====================*/
93 
94 
95 
96 /*================== Function Prototypes ==================================*/
97 
105 extern void COM_Decoder(void);
106 
113 extern void COM_StartupInfo(void);
114 
118 extern void COM_printTimeAndDate(void);
119 
123 extern void COM_printHelpCommand(void);
124 
125 
137 extern void COM_uartWrite(const uint8_t *source);
138 
151 extern void UART_uartWrite_intbuf(const uint8_t *source, uint16_t length);
152 
153 void SYSCALL_Init(void);
154 
155 __attribute__((weak)) void COM_Decoder(void);
156 __attribute__((weak)) void COM_printHelpCommand(void);
157 
158 /*================== Function Implementations =============================*/
159 
160 #endif /* COM_H_ */
void COM_Decoder(void)
COM_Decoder parses and interprets user defined input data.
void COM_uartWrite(const uint8_t *source)
UART_vWrite provides an interface to send data.
Definition: syscall.c:208
void COM_printTimeAndDate(void)
void COM_printHelpCommand(void)
__attribute__((weak)) void COM_Decoder(void)
Definition: uart.c:102
void SYSCALL_Init(void)
Definition: syscall.c:198
void COM_StartupInfo(void)
COM_StartupInfo prints some startup related informations (time & date).
Settings for the system.
void UART_uartWrite_intbuf(const uint8_t *source, uint16_t length)
UART_vWrite provides an interface to send data.
Definition: syscall.c:214