|
spinnaker_tools (BMP) latest
SpiNNaker BMP firmware
|
Simple character I/O library for BMP. More...
Functions | |
| void | eth_putc (uint32_t c) |
| Add character to ethernet-directed output stream. | |
| static void | std_putc (uint32_t c) |
| Add character to standard output stream. | |
| static void | io_put_char (char *stream, uint32_t c) |
| Add character to an output stream. | |
| static void | io_put_str (char *stream, char *s, int d) |
| Add string to an output stream. | |
| static void | io_put_int (char *stream, int n, uint32_t d, uint32_t pad) |
| Add signed integer to an output stream. | |
| static void | io_put_uint (char *stream, uint32_t n, uint32_t d, uint32_t pad) |
| Add unsigned integer to an output stream. | |
| static void | io_put_zhex (char *stream, uint32_t n, uint32_t d) |
| Add zero-padded hex integer to an output stream. | |
| static void | io_put_hex (char *stream, uint32_t n, uint32_t d, uint32_t pad) |
| Add hex integer to an output stream. | |
| static void | io_put_mac (char *stream, uint8_t *s) |
| Add MAC address to an output stream. | |
| static void | io_put_ip (char *stream, uint8_t *s) |
| Add IP address to an output stream. | |
| void | io_printf (char *stream, char *f,...) |
| Print to an output stream. | |
Variables | |
| static const char | hex [] = "0123456789abcdef" |
| Hexadecimal characters. | |
| static uint32_t | sp_ptr |
| Where in buffer to write, for 'sprintf'. | |
| static uint32_t | tube_ptr |
| Point in tube_buf to write. | |
| static uint8_t | tube_buf [256] |
| Accumulates chars to write to host. | |
Simple character I/O library for BMP.
|
extern |
Add character to ethernet-directed output stream.
If the buffer is full or at end of line, push the buffer to the configured host machine.
| [in] | c | The character to write |
|
static |
Add character to standard output stream.
If the buffer is full or at end of line, push the buffer to the configured host machine.
| [in] | c | The character to write |
|
static |
Add character to an output stream.
| [in] | stream | Where to write to. |
| [in] | c | The character to write |
|
static |
Add string to an output stream.
| [in] | stream | Where to write to. |
| [in] | s | The string to write |
| [in] | d | Field width |
|
static |
Add signed integer to an output stream.
| [in] | stream | Where to write to. |
| [in] | n | The number to write |
| [in] | d | Field width |
| [in] | pad | Padding character (unused!) |
|
static |
Add unsigned integer to an output stream.
| [in] | stream | Where to write to. |
| [in] | n | The number to write |
| [in] | d | Field width |
| [in] | pad | Padding character (unused!) |
|
static |
Add zero-padded hex integer to an output stream.
| [in] | stream | Where to write to. |
| [in] | n | The number to write |
| [in] | d | Field width |
|
static |
Add hex integer to an output stream.
| [in] | stream | Where to write to. |
| [in] | n | The number to write |
| [in] | d | Field width |
| [in] | pad | Padding character |
|
static |
Add MAC address to an output stream.
| [in] | stream | Where to write to. |
| [in] | s | The MAC address to write |
|
static |
Add IP address to an output stream.
| [in] | stream | Where to write to. |
| [in] | s | The IP address to write |
| void io_printf | ( | char * | stream, |
| char * | f, | ||
| ... | |||
| ) |
Print to an output stream.
| [in] | stream | Where to write to. |
| [in] | f | The format string |
| [in] | ... | Values to fill into the format string |