#include "mcu_periph/uart.h"
#include "mcu_periph/usb_serial.h"
#include "pprzlink/pprzlink_device.h"
Go to the source code of this file.
#define _PrintHex |
( |
|
out_fun, |
|
|
|
c |
|
) |
| |
Value:{ \
const
uint8_t hex[16] = {
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7', \
'8',
'9',
'A',
'B',
'C',
'D',
'E',
'F' };
\
out_fun(hex[high]); \
out_fun(hex[low]); \
}
Definition at line 47 of file uart_print.h.
#define _PrintHex16 |
( |
|
out_fun, |
|
|
|
c |
|
) |
| |
Value:
}
#define _PrintHex(out_fun, c)
Definition at line 67 of file uart_print.h.
#define _PrintHex32 |
( |
|
out_fun, |
|
|
|
c |
|
) |
| |
Value:
}
#define _PrintHex16(out_fun, c)
Definition at line 82 of file uart_print.h.
#define _PrintString |
( |
|
out_fun, |
|
|
|
s |
|
) |
| |
Value:
while (s[i]) { \
out_fun(s[i]); \
i++; \
} \
}
Definition at line 30 of file uart_print.h.
static void print_hex |
( |
struct link_device * |
dev, |
|
|
uint8_t |
c |
|
) |
| |
|
inlinestatic |
static void print_hex16 |
( |
struct link_device * |
dev, |
|
|
uint16_t |
c |
|
) |
| |
|
inlinestatic |
static void print_hex32 |
( |
struct link_device * |
dev, |
|
|
uint32_t |
c |
|
) |
| |
|
inlinestatic |
static void print_string |
( |
struct link_device * |
dev, |
|
|
char * |
s |
|
) |
| |
|
inlinestatic |