From 2a43dfdd687cac76235cba053bd559cc9a022bb1 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 31 Mar 2008 18:43:24 +0200 Subject: * digital/avr/modules/host: - added mex implementation. --- digital/avr/modules/host/mex.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'digital/avr/modules/host/mex.h') diff --git a/digital/avr/modules/host/mex.h b/digital/avr/modules/host/mex.h index a378496c..feb91188 100644 --- a/digital/avr/modules/host/mex.h +++ b/digital/avr/modules/host/mex.h @@ -81,6 +81,10 @@ mex_msg_pop_buffer (mex_msg_t *msg); int mex_msg_len (mex_msg_t *msg); +/** Get message type. */ +u8 +mex_msg_mtype (mex_msg_t *msg); + /** Connect to the mex Hub. */ void mex_node_connect (void); @@ -101,15 +105,15 @@ mex_node_wait_date (u32 date); u32 mex_node_date (void); -/** Send a message. */ +/** Send a message, msg is released. */ void mex_node_send (mex_msg_t *msg); -/** Send a request and return response. */ +/** Send a request and return response, msg is released. */ mex_msg_t * mex_node_request (mex_msg_t *msg); -/** Send a response to the currently serviced request. */ +/** Send a response to the currently serviced request, msg is released. */ void mex_node_response (mex_msg_t *msg); -- cgit v1.2.3