4/17/17
SigMRF Users Guide, Rev A2
Copyright
Signalogic, Inc. 2016-2017
36 / 39
uint32_t
type
:
:
:
:
16
;
;
;
;
#else
uint32_t
type
:
:
:
:
16
;
;
;
;
uint32_t
len
:
:
:
:
16
;
;
;
;
/* data length */
#endif
/* char data[0]; note that data immediately follows a command header in actual use */
};
};
};
};
/* always sent to core 0 */
struct
cmd_configuration
{
{
{
{
uint32_t
trans_id;
;
;
;
GLOBAL_CONFIG
gf;
;
;
;
};
};
};
};
struct
cmd_create_session
{
{
{
{
uint32_t
priv;
;
;
;
/* user application transparent info */
SESSION_DATA
session_data;
;
;
;
};
};
};
};
struct
cmd_modify_session
{
{
{
{
uint32_t
session_id;
;
;
;
/* ha_index = 0 (ACTIVE or 1+1 case), = X = (1..N) (Standby for Active X) */
uint32_t
ha_index;
;
;
;
TERMINATION_INFO
new_term;
;
;
;
};
};
};
};
struct
cmd_del_session
{
{
{
{
uint32_t
session_id;
;
;
;
/* ha_index = 0 (ACTIVE or 1+1 case), = X = (1..N) (Standby for Active X) */
uint32_t
ha_index;
;
;
;
};
};
};
};
struct
cmd_configuration_ack
{
{
{
{
uint32_t
cause_code;
;
;
;
/* see ack_type enums above */
};
};
};
};
struct
cmd_create_session_ack
{
{
{
{
uint32_t
cause_code;
;
;
;
/* see ack_type enums above */
};
};
};
};
struct
cmd_modify_session_ack
{
{
{
{
uint32_t
cause_code;
;
;
;
/* see ack_type enums above */
};
};
};
};
struct
cmd_del_session_ack
{
{
{
{
uint32_t
cause_code;
;
;
;
/* see ack_type enums above */
#ifdef __BIG_ENDIAN__
uint8_t
reserved;
;
;
;
union
{
{
{
{
uint8_t
audio;
;
;
;
uint8_t
video;
;
;
;
}
}
}
}
codec_type[
[
[
[
2
];
];
];
];
uint8_t
_media_type;
;
;
;
/* codec type are used for MIPs adjustment */
#else
uint8_t
_media_type;
;
;
;
/* codec type are used for MIPs adjustment */
union
{
{
{
{
uint8_t
audio;
;
;
;
uint8_t
video;
;
;
;
}
}
}
}
codec_type[
[
[
[
2
];
];
];
];
uint8_t
reserved;
;
;
;
#endif
};
};
};
};
struct
cmd_ovld_notification
{
{
{
{
uint32_t
Reserved;
;
;
;
/* TBD */
};
};
};
};