RTEMS 6.1-rc1
Files | Typedefs | Functions
Device I/O Support

This group contains the Device I/O Support API and implementation. More...

Files

file  iobase64.c
 This source file contains the implementation of _IO_Base64() and _IO_Base64url().
 
file  ioprintf.c
 This source file contains the implementation of _IO_Printf().
 
file  iorelax.c
 This source file contains the implementation of _IO_Relax().
 
file  iovprintf.c
 This source file contains the implementation of _IO_Vprintf().
 
file  io.h
 This header file provides the interfaces of the Device I/O Support.
 

Typedefs

typedef void(* IO_Put_char) (int c, void *arg)
 This type defines the put character handler. More...
 

Functions

int _IO_Printf (IO_Put_char put_char, void *arg, char const *fmt,...) RTEMS_PRINTFLIKE(3
 Prints characters using the put character handler according to the format string. More...
 
int int _IO_Vprintf (IO_Put_char put_char, void *arg, char const *fmt, va_list ap)
 Prints characters using the put character handler according to the format string. More...
 
int _IO_Base64 (IO_Put_char put_char, void *arg, const void *src, size_t len, const char *wordbreak, int wordlen)
 Outputs the source buffer in base64 encoding. More...
 
int _IO_Base64url (IO_Put_char put_char, void *arg, const void *src, size_t len, const char *wordbreak, int wordlen)
 Outputs the source buffer in base64url encoding. More...
 
void _IO_Relax (void)
 Issues a couple of no-operation instructions. More...
 

Detailed Description

This group contains the Device I/O Support API and implementation.

Typedef Documentation

◆ IO_Put_char

typedef void(* IO_Put_char) (int c, void *arg)

This type defines the put character handler.

Parameters
cis the character to put.
argis the user-provided argument.

Function Documentation

◆ _IO_Base64()

int _IO_Base64 ( IO_Put_char  put_char,
void *  arg,
const void *  src,
size_t  len,
const char *  wordbreak,
int  wordlen 
)

Outputs the source buffer in base64 encoding.

After word length of output characters produced by the encoding a word break is produced.

Parameters
put_charis the put character function used to output the encoded source buffer.
argis the argument passed to the put character function.
srcis the pointer to the source buffer begin.
srclenis the length of the source buffer in bytes.
wordbreakis the word break string.
wordlenis the word length in bytes. If the word length is less than four, then a word length of four will be used.
Returns
Returns the count of output characters.

◆ _IO_Base64url()

int _IO_Base64url ( IO_Put_char  put_char,
void *  arg,
const void *  src,
size_t  len,
const char *  wordbreak,
int  wordlen 
)

Outputs the source buffer in base64url encoding.

After word length of output characters produced by the encoding a word break is produced.

Parameters
put_charis the put character function used to output the encoded source buffer.
argis the argument passed to the put character function.
srcis the pointer to the source buffer begin.
srclenis the length of the source buffer in bytes.
wordbreakis the word break string.
wordlenis the word length in bytes. If the word length is less than four, then a word length of four will be used.
Returns
Returns the count of output characters.

◆ _IO_Printf()

int _IO_Printf ( IO_Put_char  put_char,
void *  arg,
char const *  fmt,
  ... 
)

Prints characters using the put character handler according to the format string.

Parameters
put_charis the put character handler.
argis the user-provided argument for the put character handler.
fmtis the printf()-style format string.
...is the list of parameters required by the format string.
Returns
Returns the count of put characters.

◆ _IO_Relax()

void _IO_Relax ( void  )

Issues a couple of no-operation instructions.

This function may be used to burn a couple of processor cycles with minimum impact on the system bus. It may be used in busy wait loops.

◆ _IO_Vprintf()

int int _IO_Vprintf ( IO_Put_char  put_char,
void *  arg,
char const *  fmt,
va_list  ap 
)

Prints characters using the put character handler according to the format string.

Parameters
put_charis the put character handler.
argis the user-provided argument for the put character handler.
fmtis the printf()-style format string.
apis the argument list required by the format string.
Returns
Returns the count of put characters.