You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/zephyr/ipc/icmsg.h
+43-13Lines changed: 43 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -27,21 +27,52 @@ extern "C" {
27
27
*/
28
28
29
29
enumicmsg_state {
30
-
// TODO: rename as it was before
31
-
ICMSG_STATE_UNINITIALIZED, /**< Instance is not initialized yet. Sending will fail. Opening allowed. */
32
-
ICMSG_STATE_INITIALIZING_SID_DISABLED, /**< Instance is initializing - waiting for remote to acknowledge. Sending will fail. Opening allowed, session will change and remote may or may not get unbound() callback. */
33
-
ICMSG_STATE_INITIALIZING_SID_ENABLED, /**< Instance is initializing - waiting for remote to acknowledge. Sending will fail. Opening allowed, session will change and remote may or may not get unbound() callback. */
34
-
ICMSG_STATE_INITIALIZING_SID_COMPAT, /**< Instance is initializing - waiting for remote to acknowledge. Sending will fail. Opening allowed, session will change and remote may or may not get unbound() callback. */
35
-
ICMSG_STATE_DISCONNECTED, /**< Instance was connected, but get disconnected. Sending will be silently discarded, because it there may be old sends. Opening allowed. */
36
-
// Connected states must be at the end
37
-
ICMSG_STATE_CONNECTED_SID_DISABLED, /**< Instance is connected. Sending will be successful. Opening allowed, session will change and remote will get unbound() callback. */
38
-
ICMSG_STATE_CONNECTED_SID_ENABLED, /**< Instance is connected. Sending will be successful. Opening allowed, session will change and remote will get unbound() callback. */
30
+
/** Instance is not initialized yet. In this state: sending will fail, opening allowed.
31
+
*/
32
+
ICMSG_STATE_OFF,
33
+
34
+
/** Instance is initializing without session handshake. In this state: sending will fail,
35
+
* opening will fail.
36
+
*/
37
+
ICMSG_STATE_INITIALIZING_SID_DISABLED,
38
+
39
+
/** Instance is initializing with session handshake. It is waiting for remote to acknowledge
40
+
* local session id. In this state: sending will fail, opening is allowed (local session id
41
+
* will change, so the remote may get unbound() callback).
42
+
*/
43
+
ICMSG_STATE_INITIALIZING_SID_ENABLED,
44
+
45
+
/** Instance is initializing with detection of session handshake support on remote side.
46
+
* It is waiting for remote to acknowledge local session id or to send magic bytes.
47
+
* In this state: sending will fail, opening is allowed (local session id
48
+
* will change, so the remote may get unbound() callback if it supports it).
49
+
*/
50
+
ICMSG_STATE_INITIALIZING_SID_DETECT,
51
+
52
+
/** Instance was closed on remote side. The unbound() callback was send on local side.
53
+
* In this state: sending will be silently discarded (there may be outdated sends),
54
+
* opening is allowed.
55
+
*/
56
+
ICMSG_STATE_DISCONNECTED,
57
+
58
+
/* Connected states must be at the end. */
59
+
60
+
/** Instance is connected without session handshake support. In this state: sending will be
61
+
* successful, opening will fail.
62
+
*/
63
+
ICMSG_STATE_CONNECTED_SID_DISABLED,
64
+
65
+
/** Instance is connected with session handshake support. In this state: sending will be
66
+
* successful, opening is allowed (session will change and remote will get unbound()
0 commit comments