Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
uart_print.h File Reference
+ Include dependency graph for uart_print.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _PrintString(out_fun, s)
 
#define _PrintHex(out_fun, c)
 
#define _PrintHex16(out_fun, c)
 
#define _PrintHex32(out_fun, c)
 
#define UsbSPrintHex(c)   _PrintHex(VCOM_putchar, c)
 
#define UsbSPrintHex16(c)   _PrintHex16(VCOM_putchar, c)
 
#define UsbSPrintString(s)   _PrintString(VCOM_putchar, s)
 

Macro Definition Documentation

#define _PrintHex (   out_fun,
 
)
Value:
{ \
const uint8_t hex[16] = { '0', '1', '2', '3', '4', '5', '6', '7', \
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; \
uint8_t high = (c & 0xF0)>>4; \
uint8_t low = c & 0x0F; \
out_fun(hex[high]); \
out_fun(hex[low]); \
} \
unsigned char uint8_t
Definition: types.h:14

Definition at line 36 of file uart_print.h.

#define _PrintHex16 (   out_fun,
 
)
Value:
{ \
uint8_t high16 = (uint8_t)(c>>8); \
uint8_t low16 = (uint8_t)(c); \
_PrintHex(out_fun, high16); \
_PrintHex(out_fun, low16); \
}
#define _PrintHex(out_fun, c)
Definition: uart_print.h:36
unsigned char uint8_t
Definition: types.h:14

Definition at line 45 of file uart_print.h.

#define _PrintHex32 (   out_fun,
 
)
Value:
{ \
uint16_t high32 = (uint16_t)(c>>16); \
uint16_t low32 = (uint16_t)(c); \
_PrintHex16(out_fun, high32); \
_PrintHex16(out_fun, low32); \
}
unsigned short uint16_t
Definition: types.h:16
#define _PrintHex16(out_fun, c)
Definition: uart_print.h:45

Definition at line 52 of file uart_print.h.

#define _PrintString (   out_fun,
 
)
Value:
{ \
uint8_t i = 0; \
while (s[i]) { \
out_fun(s[i]); \
i++; \
} \
}
unsigned char uint8_t
Definition: types.h:14

Definition at line 28 of file uart_print.h.

#define UsbSPrintHex (   c)    _PrintHex(VCOM_putchar, c)

Definition at line 122 of file uart_print.h.

#define UsbSPrintHex16 (   c)    _PrintHex16(VCOM_putchar, c)

Definition at line 123 of file uart_print.h.

#define UsbSPrintString (   s)    _PrintString(VCOM_putchar, s)

Definition at line 124 of file uart_print.h.