![]()  | 
  
Lightweight printf with float support. More...
Data Structures | |
| struct | _pdefs | 
Macros | |
| #define | vexStreamPut(stream, c) chIOPut( stream, c ); | 
| #define | PRINT_BUF_LEN 16 | 
| #define | THROTTLE_DELAY 30 | 
| move one character to output  More... | |
| #define | THROTTLE_DELAY_4 8 | 
| #define | PAD_NORMAL 0 | 
| move string to output with padding  More... | |
| #define | PAD_RIGHT 1 | 
| #define | PAD_ZERO 2 | 
Typedefs | |
| typedef struct _pdefs | pdefs | 
Functions | |
| void | vex_print_acquire (pdefs *p) | 
| acquire lock on print variables  More... | |
| void | vex_print_release (pdefs *p) | 
| release lock on print variables  More... | |
| int | vex_printf (const char *format,...) | 
| send formated string to the console  More... | |
| int | vex_chprintf (vexStream *chp, const char *format,...) | 
| send formated string to a vexStream  More... | |
| int | vex_vprintf (const char *format, va_list args) | 
| send formated string to a vexStream  More... | |
| int | vex_vchprintf (vexStream *chp, const char *format, va_list args) | 
| send formated string to a vexStream  More... | |
| int | vex_sprintf (char *out, const char *format,...) | 
| create formated string in a buffer  More... | |
| int | vex_snprintf (char *out, uint16_t max_len, const char *format,...) | 
| create formated string in a buffer  More... | |
| int | vex_vsprintf (char *out, const char *format, va_list args) | 
| create formated string in a buffer from a va_list  More... | |
| int | vex_vsnprintf (char *out, uint16_t max_len, const char *format, va_list args) | 
| create formated string in a buffer from a va_list  More... | |
Lightweight printf with float support.
| #define vexStreamPut | ( | stream, | |
| c | |||
| ) | chIOPut( stream, c ); | 
| #define PRINT_BUF_LEN 16 | 
| #define THROTTLE_DELAY 30 | 
move one character to output
| [in] | p | pointer to our working variables, a pdef structure | 
| [in] | c | the character to output | 
This function moves one character to the output buffer, if the buffer is NULL then the character is sent to the standard console
| #define THROTTLE_DELAY_4 8 | 
| #define PAD_NORMAL 0 | 
move string to output with padding
| [in] | p | pointer to our working variables, a pdef structure | 
| [in] | string | the string to output | 
| [in] | width | required output width | 
| [in] | pad | type of padding, left, right, zeros | 
This function moves a string into the output buffer with required padding
| #define PAD_RIGHT 1 | 
| #define PAD_ZERO 2 | 
      
  | 
  inline | 
acquire lock on print variables
| [in] | p | pointer to our working variables, a pdef structure | 
      
  | 
  inline | 
release lock on print variables
| [in] | p | pointer to our working variables, a pdef structure | 
| int vex_printf | ( | const char * | format, | 
| ... | |||
| ) | 
send formated string to the console
| [in] | format | The format string | 
This has similar but reduced functionality to the standard library function sprintf
| int vex_chprintf | ( | vexStream * | chp, | 
| const char * | format, | ||
| ... | |||
| ) | 
send formated string to a vexStream
| [in] | chp | The stream | 
| [in] | format | The format string | 
This function is used as a direct replacement for chprintf. It has similar but reduced functionality to the standard library function sprintf.
| int vex_vprintf | ( | const char * | format, | 
| va_list | args | ||
| ) | 
send formated string to a vexStream
| [in] | format | The format string | 
| [in] | args | variable argument list | 
This has similar but reduced functionality to the standard library function sprintf. This version takes a variable argument list directly.
| int vex_vchprintf | ( | vexStream * | chp, | 
| const char * | format, | ||
| va_list | args | ||
| ) | 
send formated string to a vexStream
| [in] | chp | The stream | 
| [in] | format | The format string | 
| [in] | args | variable argument list | 
This has similar but reduced functionality to the standard library function sprintf. This version takes a variable argument list directly and can also output to a stream that is not the CONSOLE.
| int vex_sprintf | ( | char * | out, | 
| const char * | format, | ||
| ... | |||
| ) | 
create formated string in a buffer
| [out] | out | The output buffer | 
| [in] | format | The format string | 
This has similar but reduced functionality to the standard library function sprintf
| int vex_snprintf | ( | char * | out, | 
| uint16_t | max_len, | ||
| const char * | format, | ||
| ... | |||
| ) | 
create formated string in a buffer
| [out] | out | The output buffer | 
| [out] | max_len | The output buffer length | 
| [in] | format | The format string | 
This has similar but reduced functionality to the standard library function sprintf
| int vex_vsprintf | ( | char * | out, | 
| const char * | format, | ||
| va_list | args | ||
| ) | 
create formated string in a buffer from a va_list
| [out] | out | The output buffer | 
| [in] | format | The format string | 
| [in] | args | a variable argument list | 
This has similar but reduced functionality to the standard library function sprintf
| int vex_vsnprintf | ( | char * | out, | 
| uint16_t | max_len, | ||
| const char * | format, | ||
| va_list | args | ||
| ) | 
create formated string in a buffer from a va_list
| [out] | out | The output buffer | 
| [out] | max_len | The output buffer length | 
| [in] | format | The format string | 
| [in] | args | a variable argument list | 
This has similar but reduced functionality to the standard library function sprintf