Revision 1604
wireless: software retransmit done. serial functions moved to xbee.c
serial.h | ||
---|---|---|
107 | 107 |
/** @brief Print a fixed width hexadecimal representation to USB **/ |
108 | 108 |
int usb_puth8(uint8_t value); |
109 | 109 |
/** @brief Alias for usb_puth16 **/ |
110 |
static inline void usb_puth (uint16_t value) { usb_puth16 (value); };
|
|
110 |
static inline void usb_puth(uint16_t value) { usb_puth16 (value); }; |
|
111 | 111 |
|
112 |
|
|
113 | 112 |
/** @} **/ //end addtogroup |
114 | 113 |
|
115 |
/** |
|
116 |
* @defgroup xbee XBee Input / Output |
|
117 |
* @brief Functions for XBee input / output |
|
118 |
* |
|
119 |
* Low level functions for XBee input and output. |
|
120 |
* |
|
121 |
* @{ |
|
122 |
**/ |
|
123 |
|
|
124 |
// if no baud rate is defined for usb, default is set here |
|
125 |
|
|
126 |
// if no baud rate is defined for xbee, default is set here |
|
127 |
#ifndef XBEE_BAUD |
|
128 |
/** @brief the XBee baud rate **/ |
|
129 |
#define XBEE_BAUD 9600 |
|
130 | 114 |
#endif |
131 | 115 |
|
132 |
/** @brief Initialize the XBee **/ |
|
133 |
int xbee_init(void); |
|
134 |
/** @brief Print a character to the XBee **/ |
|
135 |
int xbee_putc(char c); |
|
136 |
/** @brief Read a character from the XBee **/ |
|
137 |
int xbee_getc(void); |
|
138 |
/** @brief Read a character from the XBee without blocking **/ |
|
139 |
int xbee_getc_nb(char *c); |
|
140 |
|
|
141 |
|
|
142 |
|
|
143 |
/** @} **/ //end addtogroup |
|
144 |
|
|
145 |
#endif |
|
146 |
|
Also available in: Unified diff