Revision 1084
Added functions for printing hexadecimal numbers to USB, see serial.h
serial.h | ||
---|---|---|
95 | 95 |
int usb_puts(char *s); |
96 | 96 |
/** @brief Print an integer to USB **/ |
97 | 97 |
int usb_puti(int value); |
98 |
/** @brief Determine a hexadecimal digit **/ |
|
99 |
uint8_t hex_digit (uint8_t value); |
|
100 |
/** @brief Print a fixed width hexadecimal representation to USB **/ |
|
101 |
void usb_puth16 (uint16_t value); |
|
102 |
/** @brief Print a fixed width hexadecimal representation to USB **/ |
|
103 |
void usb_puth8(uint8_t value); |
|
104 |
/** @brief Alias for usb_puth16 **/ |
|
105 |
static inline void usb_puth (uint16_t value) { usb_puth16 (value); }; |
|
98 | 106 |
|
107 |
|
|
99 | 108 |
/** @} **/ //end addtogroup |
100 | 109 |
|
101 | 110 |
/** |
... | ... | |
124 | 133 |
/** @brief Read a character from the XBee without blocking **/ |
125 | 134 |
int xbee_getc_nb(char *c); |
126 | 135 |
|
136 |
|
|
137 |
|
|
127 | 138 |
/** @} **/ //end addtogroup |
128 | 139 |
|
129 | 140 |
#endif |
Also available in: Unified diff