29 #include "../INC/auxilaryFunctions.h"
58 err = OS_ERR_INVALID_OPT;
75 err = OS_ERR_INVALID_OPT;
89 term = fopen(JTAG_UART_NAME,
"w");
94 lcd = fopen(LCD_NAME,
"w");
98 fprintf(
lcd,
"\x1B[2J");
103 fprintf(
lcd,
"\x1B[%d;%dH", (
int) row, (
int) col);
113 va_start(args, format);
114 vfprintf(
term, format, args);
119 va_start(args, format);
120 vfprintf(
lcd, format, args);
Struct to store state of system and use case information.
void fflush_term()
Writes buffed data to terminal.
uint8_t init_outputTaskDataTxRx(void)
Initializes the interprocess communication between OutputTask and InputTask.
uint8_t ctrlReg
copy control register
void DOGM162lcd_setCursorMode(uint32_t lcdBase, int32_t cursorMode)
function changes cursor mode
FILE * term
stream to write on terminal device
void DOGM162lcd_init(uint32_t lcdBase)
Initialization function of LCD DOGM162B-A.
state_t operationalStatus
operational status
void init_term(void)
Initializes terminal output.
FILE * lcd
stream to write lcd device
OS_EVENT * outputTaskDataMutex
Mutex for secured variable acces.
everything is full functional
uint8_t speedReg
copy of speed register
void printf_lcd(const char *format,...)
Writes formated string to lcd.
void fflush_lcd()
Writes buffed data to lcd.
systemState_t systemState
stores state of system
void printf_term(const char *format,...)
Writes formated string to terminal.
void clear_lcd(void)
Clears display.
void setPos_lcd(int32_t row, int32_t col)
Sets the cursor position on display.
uint8_t outputTaskDataTx(outputTaskData_t data)
Sends data to ipc channel.
uint8_t outputTaskDataRx(outputTaskData_t *data)
Received data from ipc channel.
void setCursorMode_lcd(int32_t cursorMode)
Sets the cursor-mode.
uint32_t stepsReg
copy of steps register
outputTaskData_t outputTaskData
Variable for transmitting information from InputTask to OutputTask.
void init_lcd(void)
Initializes lcd output.
Datatype of global variable for transmitting information from InputTask to OutputTask.