retargettextdisplay.c File Reference

Provide stdio retargeting to text display interface.

License

Copyright 2018 Silicon Laboratories Inc. www.silabs.com

The licensor of this software is Silicon Laboratories Inc. Your use of this software is governed by the terms of Silicon Labs Master Software License Agreement (MSLA) available at www.silabs.com/about-us/legal/master-software-license-agreement. This software is distributed to you in Source Code format and is governed by the sections of the MSLA applicable to Source Code.

Definition in file retargettextdisplay.c.

#include <stdio.h>
#include <stdint.h>
#include "displayconfigall.h"
#include "display.h"
#include "textdisplay.h"
#include "retargettextdisplay.h"

Functions

int RETARGET_ReadChar (void)
 Receive a byte No input method from the text display is possible, thus we always return -1.
 
EMSTATUS RETARGET_TextDisplayInit (void)
 Initialize/retarget a TEXTDISPLAY device to receivie stdout(put).
 
int RETARGET_WriteChar (char c)
 Write a single byte to the text display.
 
EMSTATUS RETARGET_WriteString (char *str)
 Write a string of characters to the RETARGET text display device.
 

Function Documentation

int RETARGET_ReadChar ( void  )

Receive a byte No input method from the text display is possible, thus we always return -1.

Returns
-1 on failure

Definition at line 80 of file retargettextdisplay.c.

int RETARGET_WriteChar ( char  c)

Write a single byte to the text display.

Parameters
cCharacter to write
Returns
Printed character if text display is initialized. -1 if text display is not initialized.

Definition at line 93 of file retargettextdisplay.c.

References TEXTDISPLAY_WriteChar().