summaryrefslogtreecommitdiffhomepage
path: root/digital/avr/modules/host/mex.h
diff options
context:
space:
mode:
authorNicolas Schodet2008-03-31 18:43:24 +0200
committerNicolas Schodet2008-03-31 18:43:24 +0200
commit2a43dfdd687cac76235cba053bd559cc9a022bb1 (patch)
treedd6f868a7a035305a9de28c432d699cf562f2995 /digital/avr/modules/host/mex.h
parent89a5f31634fb9b8d3a6774b027be6ae01f21de42 (diff)
* digital/avr/modules/host:
- added mex implementation.
Diffstat (limited to 'digital/avr/modules/host/mex.h')
-rw-r--r--digital/avr/modules/host/mex.h10
1 files changed, 7 insertions, 3 deletions
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);