*
*/
+#ifndef _CMDLINE_H_
+#define _CMDLINE_H_
#define CMDLINE_UART 1
#define XBEE_UART 0
{
return uart_recv(CMDLINE_UART);
}
+
+#endif /* _CMDLINE_H_ */
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _XBEE_H_
+#define _XBEE_H_
+
/* Callback when receiving data on a specific channel. The arguments
* of the function are the xbee device, the channel ID, the type of
* the frame (example: XBEE_TYPE_ATRESP), the pointer to the frame,
/* process all data in queue */
int xbee_process_queue(struct xbee_dev *dev);
+
+#endif /* _XBEE_H_ */
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _XBEE_PROTO_H_
+#define _XBEE_PROTO_H_
+
/* protocol headers */
#define XBEE_DELIMITER 0x7E
void *buf, unsigned len);
void xbee_proto_rx(struct xbee_dev *dev);
+
+#endif /* _XBEE_PROTO_H_ */
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _XBEE_STATS_H_
+#define _XBEE_STATS_H_
+
/* per-device statistics */
struct xbee_stats {
int rx_frame;
/* dump statistics on stdout */
void xbee_dump_stats(struct xbee_dev *dev);
+
+#endif /* _XBEE_STATS_H_ */