summaryrefslogtreecommitdiff
path: root/digital/avr/modules/host/mex.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/avr/modules/host/mex.h')
-rw-r--r--digital/avr/modules/host/mex.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/digital/avr/modules/host/mex.h b/digital/avr/modules/host/mex.h
index feb91188..78e1368d 100644
--- a/digital/avr/modules/host/mex.h
+++ b/digital/avr/modules/host/mex.h
@@ -35,6 +35,7 @@ enum mex_mtype_t
MEX_MTYPE_DATE = 1,
MEX_MTYPE_REQ = 2,
MEX_MTYPE_RSP = 3,
+ MEX_MTYPE_RES = 4,
};
/** Message structure opaque definition. */
@@ -89,6 +90,10 @@ mex_msg_mtype (mex_msg_t *msg);
void
mex_node_connect (void);
+/** Query connection status, returns 0 if not connected. */
+int
+mex_node_connected (void);
+
/** Close connection. */
void
mex_node_close (void);
@@ -121,4 +126,13 @@ mex_node_response (mex_msg_t *msg);
void
mex_node_register (u8 mtype, mex_handler_t *handler, void *user);
+/** Request a message type reservation. */
+u8
+mex_node_reserve (const char *mtype_str);
+
+/** Request a message type reservation, using formated string. */
+u8
+mex_node_reservef (const char *mtype_fmt, ...)
+ __attribute__ ((format (printf, 1, 2)));
+
#endif /* mex_h */